Here is a wild solution for that problem:
https://kbdeveloper.qoppa.com/selecting-both-tray-and-paper-size-when-printing-in-java/
The exact class is sun.print.SunAlternateMedia, but this might not work
in newer JDKs.
Tilman
On 23.04.2025 06:46, Tilman Hausherr wrote:
Hi,
PrintRequestAttributeSet is a java class. You would have the problem
you describe with any java printing application.
Tilman
On 23.04.2025 04:56, Virender Kumar wrote:
Hi,
While giving the print command using PDFBox, if we add both the Paper
Tray
and Paper Size in the PrintRequestAttributeSet reference, then the
attribute added later overrides the previous one.
For example, we want to print A3 size from Manual Tray, then the
attribute
added later precedes the older one.
This is because both hierarchies belong to a single enum.
That is why this problem is there.
Regards,
Virender
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org