Test files › Documents

Sample Documents test files

Free documents test files for QA and developers: corrupt-xref.pdf, empty-zero-pages.pdf, no-text-layer.pdf, truncated.pdf, valid-1page.pdf, valid-500pages.pdf and more. Each with a published SHA-256 and a note on what it catches.

FileFormatSizeWhat it catches
corrupt-xref.pdfPDF720 bytesValid PDF body with a deliberately wrong startxref offset, so the cross-reference table cannot be located.
empty-zero-pages.pdfPDF430 bytesStructurally valid PDF whose /Pages node declares /Count 0 and an empty /Kids array.
no-text-layer.pdfPDF1.7 KBPDF whose only page draws vector rectangles and contains zero text operators.
truncated.pdfPDF1.4 KBA valid PDF cut off at 60% of its length, simulating an interrupted upload.
valid-1page.pdfPDF750 bytesMinimal well-formed single-page PDF 1.4 with selectable Helvetica text.
valid-500pages.pdfPDF258 KBWell-formed PDF with 500 numbered pages.
latin1.txtTXT43 bytesISO-8859-1 / Latin-1 encoded text with accented characters.
line-endings-crlf.txtTXT1.0 KB20 lines terminated with Windows CRLF (\r\n).
line-endings-lf.txtTXT1.0 KB20 lines terminated with Unix LF (\n). Byte-for-byte content twin of the CRLF file.
no-trailing-newline.txtTXT19 bytesThree lines where the final line has no terminating newline.
utf16be.txtTXT162 bytesUTF-16 big-endian with BOM.
utf16le.txtTXT162 bytesUTF-16 little-endian with BOM — what Windows PowerShell and Notepad historically emit.
utf8-no-bom.txtTXT99 bytesUTF-8 without a byte-order mark. The correct modern default.
utf8-with-bom.txtTXT102 bytesUTF-8 with a leading BOM (EF BB BF).
very-long-single-line.txtTXT1000 KBA single line of 1,000,000 characters with no newline anywhere in the file.
zero-width-and-rtl.txtTXT94 bytesText containing zero-width spaces, zero-width joiners, and bidirectional override characters (U+202E).

← All test files