Skip to content

[PDF] Invalid xref table

PDF files generated from Tex (lualatex) are reporting issues after --lightweight cleaning, such as:

  • exiftool: Warning : Invalid xref table
  • verapdf: WARNING: hello-world.pdf doesn't appear to be a valid PDF.
  • pdfcrop: Syntax Error: Couldn't read xref table. Syntax Warning: PDF file is damaged - attempting to reconstruct xref table...

I'm using the brew version of mat2: 0.12.1. I have enclosed the source, a minimal working example and the resultant problematic file.

Thank you for this tool.

hello-world.tex hello-world.pdf hello-world.cleaned.pdf

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information