[ https://issues.apache.org/jira/browse/PDFBOX-6005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950766#comment-17950766 ]
Nicolas DUFAILLY commented on PDFBOX-6005: ------------------------------------------ >From my first investigations, the Java printing API, on which PDFBOX rely, has >a reverse landscape orientation option which is currently not present in >PDFBOX (only auto, portrait and landscape available). Looking a bit further, >aside the trivial CLI support for such option, it seems, at first sight at >least, a simple enhancement located in a single PDFBOX class >(PDFPageable#getPageFormat). Indeed so called reverse landscape option in Java >layer looked coupled with a transformation matrix used in the same class >(PageFormat#getMatrix). Taking into account the way PDFBOX proceed with >landscape implementation computation, it would probably only require to set >the reverse landscape option as the format to have the Java part doing the >magic I need. Theoretically, the same could exists for portrait orientation ; but it seems (at least on my own) practically a nonsense. Indeed, it seems arguable to arbitrary choose to rotate either left or right the visual to render landscape and "meet the paper tray" whereas printing portrait upside down seems not. So my first feeling is to not require implementing the latter ; but I may personally miss some use case where it would make sense. If my analysis isn't complete, erroneous and/or that you see additional parts of code that would be necessary to change also, for such feature enhancement, please let me know. > Support reverse landscape orientation for printing > -------------------------------------------------- > > Key: PDFBOX-6005 > URL: https://issues.apache.org/jira/browse/PDFBOX-6005 > Project: PDFBox > Issue Type: Improvement > Components: Utilities > Affects Versions: 3.0.3 PDFBox > Environment: Windows Server 2019 ; OpenJDK 18.0.2 > Reporter: Nicolas DUFAILLY > Priority: Major > > I currently use PDFBOX (3.x) to print PDF in my company towards printers > supplied with preprinted paper (company branding, legal elements and so on). > The same printers are addressed by other legacy softwares that also prints on > such papers. > > Problems came for landscape orientation documents (preprinted paper is > landscaped). Documents printed from other softwares have heading oriented > (let's say) to the left whereas documents printed thru PDFBOX have header > oriented the opposite side (to the right so). Thus, half of the documents are > printed upside down regarding the paper preprinted elements. > > As other legacy software are proprietary without evolution possibility, lone > foreseeable solution would be supporting printing a new way for the PDFBOX > printed documents. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org