Fop
  1. Fop
  2. FOP-1452

RTF Renderer doesn't support fo:leader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: rtf
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other
    • External issue ID:
      43825

      Description

      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.

      1. RTF_tables.fo
        2 kB
        Chris Bowditch
      2. leader.patch
        21 kB
        Max Aster

        Activity

        Hide
        Glenn Adams added a comment -

        batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

        Show
        Glenn Adams added a comment - batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed
        Hide
        Jeremias Maerki added a comment -

        Patch applied with modifications:
        http://svn.apache.org/viewvc?rev=674314&view=rev

        Thanks, Maximilian!

        Show
        Jeremias Maerki added a comment - Patch applied with modifications: http://svn.apache.org/viewvc?rev=674314&view=rev Thanks, Maximilian!
        Hide
        Max Aster added a comment -

        Attachment leader.patch has been added with description: leader patch

        Show
        Max Aster added a comment - Attachment leader.patch has been added with description: leader patch
        Hide
        Max Aster added a comment -
        • leader supports fixed percent values for leader-length
        • most other properties
        • use-content, leader-pattern-width not implemented
        Show
        Max Aster added a comment - leader supports fixed percent values for leader-length most other properties use-content, leader-pattern-width not implemented
        Hide
        Jeremias Maerki added a comment -

        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!

        Show
        Jeremias Maerki added a comment - 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!
        Hide
        Max Aster added a comment -

        Still not working, I would like to help fixing the problem.
        Some hints would be welcome

        Show
        Max Aster added a comment - Still not working, I would like to help fixing the problem. Some hints would be welcome
        Hide
        Chris Bowditch added a comment -

        Attachment RTF_tables.fo has been added with description: test FO File to reproduce

        Show
        Chris Bowditch added a comment - Attachment RTF_tables.fo has been added with description: test FO File to reproduce
        Chris Bowditch created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Chris Bowditch
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development