You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Thanasis Giannimaras (JIRA)" <ji...@apache.org> on 2013/10/07 17:46:42 UTC

[jira] [Updated] (FOP-1872) External document is clipped when rotated

     [ https://issues.apache.org/jira/browse/FOP-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thanasis Giannimaras updated FOP-1872:
--------------------------------------

    Attachment: FOP-1872.patch

External document is clipped when rotated, because  IPD and BPD values are being set incorrectly in the  ExternalDocumentLayoutManager class, without taking into account the  reference orientation value. 

> 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: FOP-1872.patch, 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 was sent by Atlassian JIRA
(v6.1#6144)