Bug 50429 - External document is clipped when rotated
Summary: External document is clipped when rotated
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC Linux
: P3 normal
Target Milestone: ---
Assignee: fop-dev
Depends on:
Reported: 2010-12-08 04:40 UTC by Krister Wicksell
Modified: 2012-04-24 05:29 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Krister Wicksell 2010-12-08 04:40:27 UTC
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?
Comment 1 Glenn Adams 2012-04-07 01:37:20 UTC
resetting severity from major to normal pending further review
Comment 2 Glenn Adams 2012-04-07 01:45:08 UTC
resetting P2 open bugs to P3 pending further review
Comment 3 Glenn Adams 2012-04-08 04:50:34 UTC
please provide (1) minimal input FO file, (2) PDF output file, (3) all console output
Comment 4 Glenn Adams 2012-04-24 05:29:46 UTC
(In reply to comment #3)
> please provide (1) minimal input FO file, (2) PDF output file, (3) all console
> output

Krister, I am still awaiting your input as requested above. if I see no further input by April 30, I will close this bug due to lack of requested information. Regards, Glenn