Sample PDF files for testing, free, CC0 and hotlinkable

pdf/scanned-1page.pdf is one page of image with 0 characters of text, so extraction returns an empty string and a pipeline that expects text from every PDF needs OCR for it. pdf/form-fields-1page.pdf has 6 form fields, 3 of them filled, for form extraction and filling. pdf/a4-encrypted-1page.pdf is encrypted, PDF 1.5, and opens with the password loremfile, published so the test can pass.

pdf/a4-landscape-1page.pdf measures 841.89 by 595.28 points and pdf/letter-1page.pdf 612 by 792: a renderer that assumes A4 portrait crops both. pdf/blank-1page.pdf is a valid page with nothing on it, and pdf/minimal.pdf is the smallest valid PDF here at 586 bytes, for parsers that must not crash on the minimum.

pdf/a4-with-table-1page.pdf holds a table and pdf/a4-with-images-2pages.pdf 2 pages that embed images, for extractors that must keep structure and pull pictures out. pdf/a4-1page.pdf, pdf/a4-3pages.pdf and pdf/a4-10pages.pdf are 1, 3 and 10 pages of text, for page counting. pdf/1mb.pdf and pdf/10mb.pdf are 976,137 and 9,924,917 bytes over 4 and 42 pages, for upload limits.

14 files. The same list as JSON: https://loremfile.dev/pdf/index.json

PDF files
FileSizePropertiesDescription
10mb.pdf 9.9 MB (9,924,917 bytes) 42 pages About 10MB: A4 pages each embedding one incompressible seeded-noise JPEG plate, so the size is honest rather than padded.
Snippets
<a href="https://loremfile.dev/pdf/10mb.pdf">download</a>
curl -O https://loremfile.dev/pdf/10mb.pdf
1mb.pdf 976.1 KB (976,137 bytes) 4 pages About 1MB: A4 pages each embedding one incompressible seeded-noise JPEG plate, so the size is honest rather than padded.
Snippets
<a href="https://loremfile.dev/pdf/1mb.pdf">download</a>
curl -O https://loremfile.dev/pdf/1mb.pdf
a4-10pages.pdf 11.2 KB (11,246 bytes) 10 pages A4 portrait, 10 pages of Lorem Ipsum in the Helvetica core font with page numbers. No embedded fonts.
Snippets
<a href="https://loremfile.dev/pdf/a4-10pages.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-10pages.pdf
a4-1page.pdf 1.8 KB (1,795 bytes) 1 pages A4 portrait, 1 page of Lorem Ipsum in the Helvetica core font. No embedded fonts.
Snippets
<a href="https://loremfile.dev/pdf/a4-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-1page.pdf
a4-3pages.pdf 4.4 KB (4,351 bytes) 3 pages A4 portrait, 3 pages of Lorem Ipsum in the Helvetica core font with page numbers. No embedded fonts.
Snippets
<a href="https://loremfile.dev/pdf/a4-3pages.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-3pages.pdf
a4-encrypted-1page.pdf 1.9 KB (1,875 bytes) 1 pages, encrypted AES-128 encrypted. User password 'loremfile', owner password 'loremfile-owner' - both are published here on purpose, because an encrypted fixture nobody can open would be useless. Printing and copying are permitted.
Snippets
<a href="https://loremfile.dev/pdf/a4-encrypted-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-encrypted-1page.pdf
a4-landscape-1page.pdf 1.7 KB (1,682 bytes) 1 pages A4 landscape, one page: the page box is wider than it is tall.
Snippets
<a href="https://loremfile.dev/pdf/a4-landscape-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-landscape-1page.pdf
a4-with-images-2pages.pdf 27.5 KB (27,542 bytes) 2 pages Two pages, each embedding a published image fixture: the 640x480 PNG and the 640x480 JPEG. Built from the published bytes, not regenerated.
Snippets
<a href="https://loremfile.dev/pdf/a4-with-images-2pages.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-with-images-2pages.pdf
a4-with-table-1page.pdf 2.1 KB (2,059 bytes) 1 pages One page holding a ten-row table of the shared people dataset.
Snippets
<a href="https://loremfile.dev/pdf/a4-with-table-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/a4-with-table-1page.pdf
blank-1page.pdf 966 B 1 pages A structurally valid PDF with one page and no content at all.
Snippets
<a href="https://loremfile.dev/pdf/blank-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/blank-1page.pdf
form-fields-1page.pdf 5 KB (4,999 bytes) 1 pages One A4 page with an AcroForm: four text fields and two checkboxes. Full name, email and the newsletter box are filled; phone, city and the terms box are empty. Every field carries its own appearance, so viewers show the same values. For testing form extraction and filling.
Snippets
<a href="https://loremfile.dev/pdf/form-fields-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/form-fields-1page.pdf
letter-1page.pdf 1.9 KB (1,860 bytes) 1 pages US Letter portrait, one page. Same content as the A4 fixture, different page box.
Snippets
<a href="https://loremfile.dev/pdf/letter-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/letter-1page.pdf
minimal.pdf 586 B 1 pages The smallest structurally valid PDF this catalog offers: one page, the word 'Hello', a hand-written cross-reference table and nothing else.
Snippets
<a href="https://loremfile.dev/pdf/minimal.pdf">download</a>
curl -O https://loremfile.dev/pdf/minimal.pdf
scanned-1page.pdf 107 KB (107,030 bytes) 1 pages One A4 page with a raster scan of synthetic text and no text layer. Text extraction returns an empty string even though the page looks readable; OCR is required.
Snippets
<a href="https://loremfile.dev/pdf/scanned-1page.pdf">download</a>
curl -O https://loremfile.dev/pdf/scanned-1page.pdf

Every PDF file in one command, each checked against its hash: npx loremfile get --format pdf, or loremfile get --format pdf after pip install loremfile.

File names follow the naming grammar. Verify a download against sha256sums.txt.