What does a PDF error look like?
By Anton Samper · Reviewed
This sample deliberately points one cross-reference entry outside the file. The page objects remain intact, but the metadata object is unavailable to the inspector. Open Issues to see a red error and the related amber warning.
Open this exampleDownload sample PDF
1. Open Issues
Open the example, then choose Issues in the explorer or View issues and coverage in Overview. The summary shows 1 error and 1 warning.
The red Invalid cross-reference target error reports that object 6 0 has an invalid offset of 999999. This byte offset is beyond the end of this small PDF.

2. Inspect the broken index entry
Under the error, choose Inspect file structure. Follow startxref → … to highlight the original index bytes. The table starts with 0 7: seven entries, beginning with object zero. The last row, for object six, is:
0000999999 00000 nThe first field should locate object six in the file; it has deliberately been replaced with 999999. The metadata stream still exists in the original bytes, but the index does not point to it. The inspector does not silently invent a replacement object or repair the PDF.
3. Follow the related warning
Return to Issues. The amber Unresolved object reference warning reports 6 0 R. Choose Inspect 1 0 obj to see the referring catalogue's /Metadata 6 0 R entry. The warning and error have the same underlying cause: the metadata target could not be indexed.
A visible page does not prove the structure is sound
Choose Preview to try rendering the page. Its drawing instructions and font are intact, so a reader can display the page while handling the broken metadata reference differently. Readers may recover, ignore the metadata or report a problem. This example demonstrates one specific structural defect; Issues is not a complete PDF conformance validator. PDF Internals keeps the original bytes unchanged.