[
https://issues.apache.org/jira/browse/PDFBOX-6223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18098977#comment-18098977
]
Tilman Hausherr edited comment on PDFBOX-6223 at 7/27/26 10:14 AM:
-------------------------------------------------------------------
Yeah, in Acrobat I couldn't even find a way to select the text, so this makes
sense. What's odd though is that the text is displayed and printed by all
other readers.
Sorry if this is obvious but where would I add this code?
{code:java}
PDAcroForm acroForm = document.getDocumentCatalog().getAcroForm();
if (acroForm != null && acroForm.getNeedAppearances())
{
acroForm.refreshAppearances();
}{code}
was (Author: tresf):
Yeah, in Acrobat I couldn't even find a way to select the text, so this makes
sense. What's odd though is that the text is displayed and printed by all
other readers.
Sorry if this is obvious but where would I add this code?
{code:java}
PDAcroForm acroForm = document.getDocumentCatalog().getAcroForm();
if (acroForm != null && acroForm.getNeedAppearances())
{
acroForm.refreshAppearances();
}{code}
> Text areas completely missing on print
> --------------------------------------
>
> Key: PDFBOX-6223
> URL: https://issues.apache.org/jira/browse/PDFBOX-6223
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm, Rendering
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Environment: Windows 11, macOS 26, Java 11, Java 25
> Reporter: Tres Finocchiaro
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
> Attachments: PDFBOX-6223-missing-AP saved with Adobe.pdf,
> PDFBOX-6223-missing-AP saved with PDFBox.pdf,
> image-2026-07-24-11-12-45-327.png, image-2026-07-24-11-12-45-340.png,
> image-2026-07-25-11-25-38-541.png, missing-text.pdf, screenshot-1.png,
> screenshot-2.png, screenshot-3.png, screenshot-4.png
>
>
> When printing the attached document, the blocks of text containing the
> address information are missing. PDFDebugger does not draw these sections
> either.
> The attached document was edited with Adobe to remove sensitive information.
> The original document's metadata says that it was created using cairo 1.17.7
> / Inkscape 1.3.
> The issue does NOT occur with Google Chrome, macOS Preview or Adobe Acrobat.
>
> !image-2026-07-24-11-12-45-327.png!!image-2026-07-24-11-12-45-340.png!
>
>
> {code:java}
> java -jar $HOME/Downloads/pdfbox-app-3.0.8.jar print
> --input=$HOME/Downloads/missing-text.pdf{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]