You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Tres Finocchiaro <tr...@gmail.com> on 2023/08/23 18:03:11 UTC
Using JPEG2000 with PrintPDF
Hi,
I'm trying to print a PDF with JPEG2000 image in it. According to the
docs, this should be as easy as adding JAI core and JAI JPEG2000 libraries
to my classpath, but for some reason it's not working.
Here's my command:
java -cp "./jai-*.jar" -jar pdfbox-app-2.0.29.jar PrintPDF jpeg2000.pdf
What am I doing wrong?
PDF:
https://github.com/qzind/tray/files/12421913/jpeg2000.pdf
Note, I've also asked this question on Stackoverflow here:
https://stackoverflow.com/questions/76963762
- Tres.Finocchiaro@gmail.com
Re: Using JPEG2000 with PrintPDF
Posted by Tres Finocchiaro <tr...@gmail.com>.
That makes perfect sense, thank you!
- Tres.Finocchiaro@gmail.com
On Wed, Aug 23, 2023 at 2:25 PM Tilman Hausherr <TH...@t-online.de>
wrote:
> AFAIK -cp and -jar can't be mixed. Here's what I just tried and it worked:
>
> java -cp "pdfbox-app-2.0.29.jar;lib/*" org.apache.pdfbox.tools.PrintPDF
> -printerName "Microsoft Print to PDF" XXXX\jpeg2000.pdf
>
> Tilman
>
> On 23.08.2023 20:03, Tres Finocchiaro wrote:
> > Hi,
> >
> > I'm trying to print a PDF with JPEG2000 image in it. According to the
> > docs, this should be as easy as adding JAI core and JAI JPEG2000
> libraries
> > to my classpath, but for some reason it's not working.
> >
> > Here's my command:
> >
> > java -cp "./jai-*.jar" -jar pdfbox-app-2.0.29.jar PrintPDF jpeg2000.pdf
> >
> >
> > What am I doing wrong?
> >
> > PDF:
> > https://github.com/qzind/tray/files/12421913/jpeg2000.pdf
> >
> > Note, I've also asked this question on Stackoverflow here:
> > https://stackoverflow.com/questions/76963762
> >
> > - Tres.Finocchiaro@gmail.com
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Using JPEG2000 with PrintPDF
Posted by Tilman Hausherr <TH...@t-online.de>.
AFAIK -cp and -jar can't be mixed. Here's what I just tried and it worked:
java -cp "pdfbox-app-2.0.29.jar;lib/*" org.apache.pdfbox.tools.PrintPDF
-printerName "Microsoft Print to PDF" XXXX\jpeg2000.pdf
Tilman
On 23.08.2023 20:03, Tres Finocchiaro wrote:
> Hi,
>
> I'm trying to print a PDF with JPEG2000 image in it. According to the
> docs, this should be as easy as adding JAI core and JAI JPEG2000 libraries
> to my classpath, but for some reason it's not working.
>
> Here's my command:
>
> java -cp "./jai-*.jar" -jar pdfbox-app-2.0.29.jar PrintPDF jpeg2000.pdf
>
>
> What am I doing wrong?
>
> PDF:
> https://github.com/qzind/tray/files/12421913/jpeg2000.pdf
>
> Note, I've also asked this question on Stackoverflow here:
> https://stackoverflow.com/questions/76963762
>
> - Tres.Finocchiaro@gmail.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org