Documents

PDF test files, any size.

Set a size and generate a structurally valid PDF immediately. Nothing is uploaded and nothing is stored.

0bytes
Exact size

PDF, built to spec.

Each file is a single-page PDF 1.7 document sized to A4. The size you ask for is reached with an unreferenced content stream, the same mechanism PDF writers use for incremental updates, so the result opens in Acrobat, Preview, Chrome, pdf.js and pypdf. Most people generate these for testing PDF upload limits, print pipelines and document parsers.

Questions.

How small can a PDF file be?

About 772 bytes. Below that the format cannot carry its mandatory structure, let alone padding.

Will the file open normally?

Yes — it opens in Acrobat, Preview, Chrome, pdf.js and pypdf, because the padding lives in an unreferenced content stream, the same mechanism PDF writers use for incremental updates.

Can I ask for an unusual size?

Any byte count above the minimum works, including values like 3,145,728 or 27.5 MB. Drag the caliper or type the number.

Noticed an issue with this test file? Report an issue →