[
https://issues.apache.org/jira/browse/FOP-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luis Bernardo updated FOP-1872:
-------------------------------
Attachment: portrait.pdf
portrait.fo
landscape.pdf
landscape.fo
example attached
> External document is clipped when rotated
> -----------------------------------------
>
> Key: FOP-1872
> URL: https://issues.apache.org/jira/browse/FOP-1872
> Project: Fop
> Issue Type: Bug
> Components: pdf
> Affects Versions: 1.0
> Environment: Operating System: Linux
> Platform: PC
> Reporter: Krister Wicksell
> Attachments: landscape.fo, landscape.pdf, portrait.fo, portrait.pdf
>
>
> 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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira