Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1872

External document is clipped when rotated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.0
    • 2.2
    • renderer/pdf
    • None
    • Operating System: Linux
      Platform: PC
    • 50429

    Description

      When I use fox:external-document and a reference-orientation of 90 degrees the content is clipped to width of the page. The external document is A4 landscape so I rotate it to get it as portrait. So the document is rotated and the page size is correct but the content of the page is clipped and don't fill the whole height.

      I have traced the problem to ExternalDocumentLayoutManager.createPage(...).
      I think the line:
      RegionViewport rv = new RegionViewport(referenceRect);
      should be replaced by:
      RegionViewport rv = new RegionViewport(new Rectangle(0, 0, imageSize.width, imageSize.height));
      Is this correct?

      Attachments

        1. landscape.fo
          2 kB
          Luis Bernardo
        2. landscape.pdf
          6 kB
          Luis Bernardo
        3. portrait.fo
          2 kB
          Luis Bernardo
        4. portrait.pdf
          11 kB
          Luis Bernardo
        5. FOP-1872.patch
          2 kB
          Thanasis Giannimaras

        Activity

          People

            Unassigned Unassigned
            krister.wicksell@zert.se Krister Wicksell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: