PDF guides

Recover a PDF with a broken cross-reference

·

A PDF stays readable only when a reader can locate its pages and the objects they use. A broken cross-reference offset can prevent a reader from following that index even when both pages still exist.

Repair PDF

Recover a broken cross-reference

Choose Load example to add broken-inventory.pdf. The example has an invalid final startxref value, which tells a PDF reader where to find the object index. Its source page objects remain present.

Choose Check and repair PDF. The tool first checks the PDF without recovery, then attempts a new structure when that check fails. For this example, the result says Structural recovery completed and lists two pages.

qpdf, running a strict structure check and handling recoveryPDF Association, ISO 32000 resources

Reopen the two-page inventory

Select Download repaired PDF and open broken-inventory-repaired.pdf in your usual reader. The first page includes Warehouse arrival and Inventory sheet 1. Page 2 includes Inventory sheet 2 and keeps its original rotation.

Keep your source for comparison. If you can access qpdf, run qpdf --suppress-recovery --check broken-inventory-repaired.pdf to verify that a strict check can open it.

qpdf, running a strict structure check and handling recovery

Check unreadable or signed sources

If recovery fails, export a fresh copy from the source application or retrieve a complete original. Structure repair depends on readable page objects and their resources.

The tool checks unsigned, unencrypted copies. Keep a digitally signed original and get an unsigned copy for recovery work.

qpdf, running a strict structure check and handling recoveryPDF Association, ISO 32000 resources

Common questions

What happens if the original already passes?

The tool reports that the original passed and offers a download of the original bytes.

Can an apparently repaired file still be missing data?

Yes. Structure and page geometry checks can pass even when the input already lacked some content. Check text, images, forms and links you expect to use.

Sources

Put it into practice.

Related guides