Hi,
My fix is for something different, and it wouldn't be used for jdk25
anyway. The bug described there is about an output bin in combination
with a input bin. PrintPDF doesn't support output bins and the OutputBin
class has been introduced in jdk23 so we wouldn't be able to support it
anywa
It might be worth retesting in Java 25, this fix may be relevant?
https://bugs.openjdk.org/browse/JDK-8349350
On Thu, Apr 24, 2025 at 11:54 AM Tilman Hausherr
wrote:
> I've added the feature for 3.0 only. It will work quietly only when
> using jdk1.8. If you need it for 2.0 please tell me.
>
I've added the feature for 3.0 only. It will work quietly only when
using jdk1.8. If you need it for 2.0 please tell me.
https://issues.apache.org/jira/browse/PDFBOX-5994
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.5-SNAPSHOT/
Tilman
-
Hi,
I tried in jdk 21, 23 and 24 and got this:
java.lang.IllegalAccessException: class org.apache.pdfbox.tools.PrintPDF
cannot access class sun.print.SunAlternateMedia (in module java.desktop)
because module java.desktop does not export sun.print to unnamed module
@6bf256fa
It works in jdk1
I think it might. I see the source code for that class in the src.zip file
of my Eclipse Temurin OpenJDK 11 distribution, so presumably it's included
in binary as well.
On Wed, Apr 23, 2025 at 6:56 AM Tilman Hausherr
wrote:
> Here is a wild solution for that problem:
>
> https://kbdeveloper.qopp
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,
PrintRequestAttribu
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 PrintRequestAttrib
7 matches
Mail list logo