This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 519beb9a PDFBOX-5300: mention workaround for printing slowness
519beb9a is described below

commit 519beb9aebf645e9f0f4b1734f7ec7e24cd31275
Author: Tilman Hausherr <[email protected]>
AuthorDate: Tue May 14 13:58:52 2024 +0200

    PDFBOX-5300: mention workaround for printing slowness
---
 content/2.0/faq.md | 13 +++++++++++++
 content/3.0/faq.md | 13 +++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/content/2.0/faq.md b/content/2.0/faq.md
index 8af90003..614d3105 100644
--- a/content/2.0/faq.md
+++ b/content/2.0/faq.md
@@ -252,3 +252,16 @@ Sadly, this is a known bug in Java Imaging. Use the 
twelvemonkeys library as des
 
 This is a bug in the original java JPEG2000 decoder. You can see examples of 
such images in [PDFBOX-1752](https://issues.apache.org/jira/browse/PDFBOX-1752) 
and related issues.
 Use the newer (1.4.0 or higher) `jai-imageio-jpeg2000` and `jai-imageio-core` 
decoders as explained in the [dependencies](dependencies.html) page.
+
+### Why is printing so slow for some PDFs?
+
+If display rendering happens within a decent time but not printing,
+then the cause is likely transparent elements. Java renders these much slower 
when printing,
+see 
[here](https://blog.idrsolutions.com/avoid-transparency-when-printing-in-java/) 
for an
+explanation, and 
[PDFBOX-3046](https://issues.apache.org/jira/browse/PDFBOX-3046) 
+and related issues for sample files.
+
+A workaround is to use a specific dpi for the constructors of ``PDFPageable`` 
and ``PDFPrintable``,
+PDFBox will then render into an image
+and print that one. You should experiment with 300, 600 and 1200 dpi by trying 
it with
+the command-line app.
\ No newline at end of file
diff --git a/content/3.0/faq.md b/content/3.0/faq.md
index 70ca3e2a..74971d8d 100644
--- a/content/3.0/faq.md
+++ b/content/3.0/faq.md
@@ -264,3 +264,16 @@ Sadly, this is a known bug in Java Imaging. Use the 
twelvemonkeys library as des
 
 This is a bug in the original java JPEG2000 decoder. You can see examples of 
such images in [PDFBOX-1752](https://issues.apache.org/jira/browse/PDFBOX-1752) 
and related issues.
 Use the newer (1.4.0 or higher) `jai-imageio-jpeg2000` and `jai-imageio-core` 
decoders as explained in the [dependencies](dependencies.html) page.
+
+### Why is printing so slow for some PDFs?
+
+If display rendering happens within a decent time but not printing,
+then the cause is likely transparent elements. Java renders these much slower 
when printing,
+see 
[here](https://blog.idrsolutions.com/avoid-transparency-when-printing-in-java/) 
for an
+explanation, and 
[PDFBOX-3046](https://issues.apache.org/jira/browse/PDFBOX-3046) 
+and related issues for sample files.
+
+A workaround is to use a specific dpi for the constructors of ``PDFPageable`` 
and ``PDFPrintable``,
+PDFBox will then render into an image
+and print that one. You should experiment with 300, 600 and 1200 dpi by trying 
it with
+the command-line app.
\ No newline at end of file

Reply via email to