Test filesDocuments › truncated.pdf

Corrupt PDF file

A valid PDF cut off at 60% of its length, simulating an interrupted upload.

↓ Download truncated.pdf
Filenametruncated.pdf
FormatPDF
Size1.4 KB (1,394 bytes)
MIME typeapplication/pdf
SHA-256a0975aad80c61f7b47103d04c4143122aa1a48da51d0c7fe74772f3af3479d7b
What this file catchesUpload handlers that accept a partial file because the magic bytes matched the first 5 bytes. Validate the trailer, not just the header.

Download & verify

curl -fsSL -o "truncated.pdf" "https://files.hexaqa.com/pdf/truncated.pdf"
curl -fsSL "https://files.hexaqa.com/pdf/truncated.pdf" | sha256sum # expect: a0975aad80c61f7b47103d04c4143122aa1a48da51d0c7fe74772f3af3479d7b

More documents test files

corrupt-xref.pdfempty-zero-pages.pdfno-text-layer.pdfvalid-1page.pdfvalid-500pages.pdflatin1.txtline-endings-crlf.txtline-endings-lf.txt

← All Documents files