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

Luis Bernardo resolved FOP-1872.
--------------------------------

       Resolution: Fixed
    Fix Version/s: trunk

> 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
>             Fix For: trunk
>
>         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)

Reply via email to