[
https://issues.apache.org/jira/browse/PDFBOX-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679576#comment-14679576
]
John Hewson edited comment on PDFBOX-2922 at 8/10/15 5:17 AM:
--------------------------------------------------------------
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.
was (Author: jahewson):
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: [email protected]
For additional commands, e-mail: [email protected]