Am 23.03.2017 um 18:10 schrieb Donald Whytock:
Hi all...

I'm checking out PDFBox printing capability using a 32-page PDF.  The good
news is that the PDF prints perfectly.  The bad news is that it takes over
half an hour.

To better understand the situation, I added some logging to the
PDFPrintable class.  Half the pages printed almost instantly; the other
half averaged six minutes per page.

While PDFPrintable.print() was called twice for each quick page, it was
called over 1,800 times for one page.  Logging the graphics parameter
as graphics.getClip().toString() showed each call was for a different
region of the page.  At eight minutes for the page, that's roughly five
calls executed per second.

Known java problem, see Petrs comment:
https://issues.apache.org/jira/browse/PDFBOX-3046

workaround: set dpi > 0, e.g. 300 or 600.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to