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

John Hewson commented on PDFBOX-2922:
-------------------------------------

That's the correct behaviour, the purpose of a Pageable is to return the 
original page sizes in the source document. If you want to override the page 
sizes, use a Book instead of a PDFPageable. See our 
[printWithPaper()|https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java]
 example.

However, I think you're having issues due to a bug, which I've fixed below, so 
it shouldn't matter.

> Printing issues with landscape pages
> ------------------------------------
>
>                 Key: PDFBOX-2922
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2922
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Pei-Tang Huang
>            Assignee: John Hewson
>         Attachments: landscape.pdf, rotated_cropping_failed.jpg, success.jpg
>
>
> Would you please remove the {{final}} modifier from {{PDFPrintable}} and 
> {{PDFPageable}} so that one can extending those classes.
> UPDATE: I've modified the original title of this issue to reflect the 
> underlying bug, rather than the user wanting to have "final" removed for 
> these classes and fix the bug themselves.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to