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 "Luis Bernardo (JIRA)" <ji...@apache.org> on 2013/10/14 01:41:41 UTC

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

    [ https://issues.apache.org/jira/browse/FOP-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13793842#comment-13793842 ] 

Luis Bernardo commented on FOP-1872:
------------------------------------

patch by TG applied: http://svn.apache.org/viewvc?view=revision&revision=1531769

the original reporters suggestion did not work but the idea was good.

> 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)