[
https://issues.apache.org/jira/browse/PDFBOX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901923#action_12901923
]
Christophe Borivant commented on PDFBOX-788:
--------------------------------------------
PrinterJob printJob = PrinterJob.getPrinterJob();
If I'm not wrong, printJob would only be visible from print method because it
is not an instance attribute.
getPageFormat needs to be able to access the original PrintJob to access to the
printService and get the printer default configuration.
It's probably possible not to use a setter but it sound like a "best pratice"
or a "design pattern" to me (remember I'm not really a developper, but the
discussion is interesting ;-) )
> PrintPDF does not take the windows default printer orientation into account
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-788
> URL: https://issues.apache.org/jira/browse/PDFBOX-788
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.2.1
> Environment: Windows XP at least
> Reporter: Christophe Borivant
> Assignee: Jukka Zitting
> Fix For: 1.3.0
>
> Attachments: PDDocument.patch, PDFBOX-788.diff
>
>
> We have 2 printers, the first one is defined to print in Portrait by default
> in Windows, the other one is defined to print in Landscape by default in
> Windows.
> PrintPDF does not take the default configuration into account.
> I wrote a little patch that seems to solve this bug
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.