You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/05/11 11:50:00 UTC
[jira] [Comment Edited] (PDFBOX-6005) Support reverse landscape orientation for printing
[ https://issues.apache.org/jira/browse/PDFBOX-6005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950767#comment-17950767 ]
Tilman Hausherr edited comment on PDFBOX-6005 at 5/11/25 11:49 AM:
-------------------------------------------------------------------
I saw this:
https://docs.oracle.com/javase/7/docs/api/java/awt/print/PageFormat.html
there is a REVERSE_LANDSCAPE, did you try that yourself?
was (Author: tilman):
In your users mailing list posting you mentioned
{quote}
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. Indeed so called reverse landscape option in Java layer looked coupled with a transformation matrix used in the same class. 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.
{quote}
I saw this:
https://docs.oracle.com/javase/7/docs/api/java/awt/print/PageFormat.html
there is a REVERSE_LANDSCAPE, did you try that yourself?
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org