FOP
  1. FOP
  2. FOP-1208

Images not scaled in RTF, FOP 0.92b

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 0.92
    • Fix Version/s: None
    • Component/s: renderer/rtf
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: Other
    • External issue ID:
      39980

      Description

      I'm trying to create RTF-Output similar to PDF, especially i want to insert
      some Images and scale these to fix sizes.

      Now i've tried the examples/fo/basic/images.fo to output as RTF, but no image
      is scaled.

      Should this work or is this a known limitation ?

        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 -

        Should be fixed now: http://svn.apache.org/viewvc?rev=675150&view=rev

        Maximilan, thanks for you patch. But I think I've found a better solution that reuses code from the layout engine and does not cause compatibility issues.

        Show
        Jeremias Maerki added a comment - Should be fixed now: http://svn.apache.org/viewvc?rev=675150&view=rev Maximilan, thanks for you patch. But I think I've found a better solution that reuses code from the layout engine and does not cause compatibility issues.
        Hide
        Jeremias Maerki added a comment -

        I'm going to defer this patch for later. It breaks backwards compatibility of the RTF library which is known to be used separately by others. I'm going to look into using the org.apache.fop.layoutmgr.inline.ImageLayout class for handling the image layout as an alternative. That allows to avoid duplication of a lot of logic.

        Show
        Jeremias Maerki added a comment - I'm going to defer this patch for later. It breaks backwards compatibility of the RTF library which is known to be used separately by others. I'm going to look into using the org.apache.fop.layoutmgr.inline.ImageLayout class for handling the image layout as an alternative. That allows to avoid duplication of a lot of logic.
        Hide
        Max Aster added a comment -

        Attachment image-scaling.patch has been added with description: image scaling patch

        Show
        Max Aster added a comment - Attachment image-scaling.patch has been added with description: image scaling patch
        Hide
        Max Aster added a comment -
        • percent values for content-width and content-height possible
        • uniform scaling working
        Show
        Max Aster added a comment - percent values for content-width and content-height possible uniform scaling working
        Hide
        Jeremias Maerki added a comment -

        RTF is still behind the other output formats and probably will always be simply
        because of the fact that RTF is not as expressive as it should be for mapping
        XSL-FO. Obviously, that doesn't apply to image sizing. I can see that there are
        certain effects from certain properties. But the image handling part will still
        need some attention until it provides the same functionality as is available
        with the output formats that are using the layout engine. Volunteers are
        welcome. Shouldn't be too difficult, so don't be afraid to jump in. If you need
        pointers just shout.

        Show
        Jeremias Maerki added a comment - RTF is still behind the other output formats and probably will always be simply because of the fact that RTF is not as expressive as it should be for mapping XSL-FO. Obviously, that doesn't apply to image sizing. I can see that there are certain effects from certain properties. But the image handling part will still need some attention until it provides the same functionality as is available with the output formats that are using the layout engine. Volunteers are welcome. Shouldn't be too difficult, so don't be afraid to jump in. If you need pointers just shout.

          People

          • Assignee:
            fop-dev
            Reporter:
            Mike Lindenblatt
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development