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

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

1. If you want to customise the orientation, then you don't want to use 
PDFPageable. The purpose of a Pageable interface  is to let the source document 
determine its own layout. If you want to do something custom, then skip the 
Pageable and use a Printable directly.

2. We could add an API to change the centering behaviour. Why isn't centering 
working for you? Note that if you're using a custom page layout then you can 
set the imageable area to the same size as the PDF page and then the centering 
will have no effect.

Take a look at our [Printing
https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java]
 examples, specifically printWithPaper(), which supports custom page layouts 
via Book.

> Make PDFPrintable and PDFPageable extandable
> --------------------------------------------
>
>                 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
>
> Would you please remove the {{final}} modifier from {{PDFPrintable}} and 
> {{PDFPageable}} so that one can extending those classes.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to