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.
| File | Format | Size | What it catches |
corrupt-xref.pdf | 720 bytes | Valid PDF body with a deliberately wrong startxref offset, so the cross-reference table cannot be located. | |
empty-zero-pages.pdf | 430 bytes | Structurally valid PDF whose /Pages node declares /Count 0 and an empty /Kids array. | |
no-text-layer.pdf | 1.7 KB | PDF whose only page draws vector rectangles and contains zero text operators. | |
truncated.pdf | 1.4 KB | A valid PDF cut off at 60% of its length, simulating an interrupted upload. | |
valid-1page.pdf | 750 bytes | Minimal well-formed single-page PDF 1.4 with selectable Helvetica text. | |
valid-500pages.pdf | 258 KB | Well-formed PDF with 500 numbered pages. | |
latin1.txt | TXT | 43 bytes | ISO-8859-1 / Latin-1 encoded text with accented characters. |
line-endings-crlf.txt | TXT | 1.0 KB | 20 lines terminated with Windows CRLF (\r\n). |
line-endings-lf.txt | TXT | 1.0 KB | 20 lines terminated with Unix LF (\n). Byte-for-byte content twin of the CRLF file. |
no-trailing-newline.txt | TXT | 19 bytes | Three lines where the final line has no terminating newline. |
utf16be.txt | TXT | 162 bytes | UTF-16 big-endian with BOM. |
utf16le.txt | TXT | 162 bytes | UTF-16 little-endian with BOM — what Windows PowerShell and Notepad historically emit. |
utf8-no-bom.txt | TXT | 99 bytes | UTF-8 without a byte-order mark. The correct modern default. |
utf8-with-bom.txt | TXT | 102 bytes | UTF-8 with a leading BOM (EF BB BF). |
very-long-single-line.txt | TXT | 1000 KB | A single line of 1,000,000 characters with no newline anywhere in the file. |
zero-width-and-rtl.txt | TXT | 94 bytes | Text containing zero-width spaces, zero-width joiners, and bidirectional override characters (U+202E). |