[
https://issues.apache.org/jira/browse/PDFBOX-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14020926#comment-14020926
]
Tilman Hausherr commented on PDFBOX-2119:
-----------------------------------------
A look at the source code confirms the described behavior: if you use the
default constructor, the variable printerjob is created through
PrinterJob.getPrinterJob(), which according to javadoc "Creates and returns a
PrinterJob which is initially associated with the default printer." Later, the
page format is retrieved through printerJob.defaultPage().
How about using a PDFPrinter constructor that takes a printerJob that is set to
your print service?
> 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
> Labels: pdfbox, printer, printing
>
> 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)