This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits 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 d431c456 PDFBOX-6218: update FAQ
d431c456 is described below
commit d431c456458c50f61dd87b62f4810271febe4744
Author: Tilman Hausherr <[email protected]>
AuthorDate: Mon Jul 13 12:37:18 2026 +0200
PDFBOX-6218: update FAQ
---
content/2.0/faq.md | 13 ++++++++++++-
content/3.0/faq.md | 13 ++++++++++++-
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/content/2.0/faq.md b/content/2.0/faq.md
index 05f62bca..ac0c04b7 100644
--- a/content/2.0/faq.md
+++ b/content/2.0/faq.md
@@ -264,4 +264,15 @@ 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
+the command-line app.
+
+## PDF signatures
+
+<a name="extradata"></a>
+
+### IOException: Extra data detected in stream
+
+This happens since 1.85 of the Bouncy Castle cryptographic library and is
because PDF signatures
+are written into a larger zero-allocated area.
+The fix is to wrap the byte array retrieved from `PDSignature.getContents()`
+into a `ByteArrayInputStream` before passing it to the `CMSSignedData`
constructor.
\ No newline at end of file
diff --git a/content/3.0/faq.md b/content/3.0/faq.md
index 049cf14f..43be8a87 100644
--- a/content/3.0/faq.md
+++ b/content/3.0/faq.md
@@ -276,4 +276,15 @@ 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
+the command-line app.
+
+## PDF signatures
+
+<a name="extradata"></a>
+
+### IOException: Extra data detected in stream
+
+This happens since 1.85 of the Bouncy Castle cryptographic library and is
because PDF signatures
+are written into a larger zero-allocated area.
+The fix is to wrap the byte array retrieved from `PDSignature.getContents()`
+into a `ByteArrayInputStream` before passing it to the `CMSSignedData`
constructor.
\ No newline at end of file