Test filesDocuments › corrupt-xref.pdf

Corrupt PDF file

Valid PDF body with a deliberately wrong startxref offset, so the cross-reference table cannot be located.

↓ Download corrupt-xref.pdf
Filenamecorrupt-xref.pdf
FormatPDF
Size720 bytes (720 bytes)
MIME typeapplication/pdf
SHA-256bd5efc3d6ec6afa54aec7d16a763577239ce2e1fda8636bea12497b4d9046f32
What this file catchesParsers that crash or hang instead of falling back to a full-file object scan. Most real-world "damaged PDF" reports look exactly like this.

Download & verify

curl -fsSL -o "corrupt-xref.pdf" "https://files.hexaqa.com/pdf/corrupt-xref.pdf"
curl -fsSL "https://files.hexaqa.com/pdf/corrupt-xref.pdf" | sha256sum # expect: bd5efc3d6ec6afa54aec7d16a763577239ce2e1fda8636bea12497b4d9046f32

More documents test files

empty-zero-pages.pdfno-text-layer.pdftruncated.pdfvalid-1page.pdfvalid-500pages.pdflatin1.txtline-endings-crlf.txtline-endings-lf.txt

← All Documents files