[
https://issues.apache.org/jira/browse/PDFBOX-6223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18098940#comment-18098940
]
Tilman Hausherr commented on PDFBOX-6223:
-----------------------------------------
This file has text fields but the appearances haven't been set. So it's
displayed without. NeedAppearances is true. You should add something like this:
{code:java}
if (acroForm != null && acroForm.getNeedAppearances())
{
acroForm.refreshAppearances();
}
{code}
I tried the "repair acroform" feature in PDFDebugger and got this:
!screenshot-1.png!
> Text areas completely missing on print
> --------------------------------------
>
> Key: PDFBOX-6223
> URL: https://issues.apache.org/jira/browse/PDFBOX-6223
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Environment: Windows 11, macOS 26, Java 11, Java 25
> Reporter: Tres Finocchiaro
> Priority: Major
> Attachments: image-2026-07-24-11-12-45-327.png,
> image-2026-07-24-11-12-45-340.png, missing-text.pdf, screenshot-1.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]