[
https://issues.apache.org/jira/browse/PDFBOX-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026926#comment-14026926
]
John Hewson commented on PDFBOX-2119:
-------------------------------------
That's not what you want though. PDFBox should never be trying to set the
imageable area of the page, it's defined by the printer. Likewise it shouldn't
be trying to set the Paper, it's up to the user - they can already do this with
the existing PDFPrinter class, as Tilman explained. No modifications needed.
Your change breaks existing code because now PDFBox is trying to set the paper
size, when we went to great effort recently to stop it doing that.
Also, you removed the new API which allowed the page orientation to be
overridden by the user, why? It was needed.
> Possible printing bug for V2.00
> -------------------------------
>
> Key: PDFBOX-2119
> URL: https://issues.apache.org/jira/browse/PDFBOX-2119
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: Window 7 Professional SP1, JRE 8.
> Reporter: You Liang
> Assignee: Andreas Lehmkühler
> Labels: pdfbox, printer, printing
> Fix For: 1.8.6, 2.0.0
>
>
> Printing seems to be using the window default printer paper size instead of
> selected printService papersize.
> Etc my default Printer is an A4 Printer, and the printer that i had choosen
> to print is a receipt printer.
> When i print to the receipt printer, it will print out a blown up version of
> the original pdf, and when i change my default printer to the receipt
> printer.. everything work fine.
--
This message was sent by Atlassian JIRA
(v6.2#6252)