PDF/A error: broken or invalid cross-reference table

A damaged xref table means objects aren't where the file says. Why it happens and how to repair it.

The cross-reference table, which maps objects to byte offsets, doesn't match the file. gopdfrab rebuilds it on open and reports the damage, so you still get a result.

ISO 19005-1 clause 6.1 · File structure

What causes it

  • An interrupted upload, download or copy.
  • A tool wrote objects without updating the table.
  • Incremental updates were appended incorrectly.
  • Line endings changed by a text-mode transfer.

How to fix it

  1. Get the original file if you can. Rebuilding the table doesn't bring back lost objects.
  2. Re-save with a tool that rebuilds the table, or convert with gopdfrab.
  3. If it keeps happening, check the transfer path.

Or drop the file into the converter, which fixes what it can in your browser.

FAQ

Can a file with a broken xref still be verified?

Usually. gopdfrab recovers what it can and reports issues, but never calls a damaged structure conformant.

How do I tell corruption from non-conformance?

gopdfrab's typed errors keep "damaged" and "fails PDF/A" apart.

Related

← All PDF/A errors