Bug 43825 - RTF Renderer doesn't support fo:leader
Summary: RTF Renderer doesn't support fo:leader
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: rtf (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-09 06:52 UTC by Chris Bowditch
Modified: 2012-04-01 06:33 UTC (History)
3 users (show)



Attachments
test FO File to reproduce (2.44 KB, text/plain)
2007-11-09 06:53 UTC, Chris Bowditch
Details
leader patch (20.54 KB, patch)
2008-06-23 02:40 UTC, Max Aster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Bowditch 2007-11-09 06:52:29 UTC
Render the attached FO to RTF and FOP generates some warnings that fo:leader 
is not supported. I can imagine that there may not be a direct equivalent to 
fo:leader in RTF but fo:leader is used to ensure that empty fo:blocks are not 
dropped. It may be possible to use   for this purpose instead but other 
commercial renderers drop the block even with   so fo:leader is used to 
keep the FO portable between the implementations. Even if full support for 
fo:leader is not possible in RTF, it would be very helpful it FOP could at 
least ensure the lines are not collapsed if an empty leader is present.
Comment 1 Chris Bowditch 2007-11-09 06:53:24 UTC
Created attachment 21103 [details]
test FO File to reproduce
Comment 2 Max Aster 2008-06-04 07:13:04 UTC
Still not working, I would like to help fixing the problem.
Some hints would be welcome
Comment 3 Jeremias Maerki 2008-06-05 01:17:54 UTC
Maximilan, as Chris already noted, it is not possible to fully map fo:leader into RTF. Some approximation might be possible. The place to implement this is org.apache.fop.render.rtf.RTFHandler.leader(Leader). You can find various test cases for leader in test/layoutengine/standard-testcases/leader-*.xml (use with ../testcase2fo.xsl). How exactly fo:leader should be mapped to RTF, I haven't investigated. Thanks for volunteering!
Comment 4 Max Aster 2008-06-23 02:40:55 UTC
Created attachment 22161 [details]
leader patch

- leader supports fixed percent values for leader-length
- most other properties
- use-content, leader-pattern-width not implemented
Comment 5 Jeremias Maerki 2008-07-06 09:45:26 UTC
Patch applied with modifications:
http://svn.apache.org/viewvc?rev=674314&view=rev

Thanks, Maximilian!
Comment 6 Glenn Adams 2012-04-01 06:33:34 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed