PDF debugging examples
Investigate file size, text mappings, fonts, attachments, and page behaviour with ten examples, including a deliberately damaged PDF. Each walkthrough includes an original sample PDF you can open in the inspector or download.
Why is this one-page PDF so large?
A one-page invoice takes over 4 MB because of a small image. Check how many pixels it stores and how much space it occupies on the page.
Why does copied PDF text differ from the page?
The invoice shows £1,250.00, but a text extractor returns £9,250.00. Follow the content stream to its font and find the incorrect Unicode mapping.
Which font is this PDF actually using?
Follow a text instruction to its font descriptor and embedded TrueType program. Compare it with a font that is named but not embedded.
How to find the source bytes behind text in a PDF
Search a PDF’s page text, find the match in the preview, then follow it to the decoded content stream bytes and character codes that draw it.
Where is the attachment?
Find an invoice’s CSV attachment, follow its file specification, and download the data that does not appear on the page.
Why is the same logo stored several times?
Compare three pages’ image references to distinguish shared artwork from a separate copy of the same logo.
Why is this page rotated?
Trace inherited page rotation and compare it with a drawing matrix that turns text on a page with zero page rotation.
Where did this page’s resources come from?
Follow a page’s parent to find the inherited font and image resources missing from its own dictionary.
PDF actions: types and an automatic opening example
Learn what PDF actions do, how OpenAction and other triggers work, and inspect a GoTo opening action in a downloadable example.
What does a PDF error look like?
Open a deliberately damaged PDF, see its invalid cross-reference error and unresolved reference warning, and trace both to the original bytes.
Use the same approach on your own file
Start with the page preview, then follow its content and resource references to the bytes you need to inspect. Another PDF may have the same symptom for a different reason. Inspection is local and read-only. See the user guide for the controls and limitations for supported files.