Sample PDF Files — Download Test PDFs (1 to 60 Pages, Form, Password)
Portable Document Format · .pdf · MIME type application/pdf
Download a sample PDF file that matches your test: a tiny 1-page text PDF, 5- and 20-page documents with headings, tables and embedded images, a 60-page file for pagination and performance, an A4 landscape page, a fillable form with text fields, a checkbox and a dropdown, and a password-protected file (password: test) encrypted with AES-256.
PDF is the one document format every platform renders, which is why it is also the format that exposes the most edge cases: encryption, forms, page sizes, embedded fonts and images. These files are generated with reportlab and pypdf, carry proper document metadata, and are deterministic — the same bytes on every download.
Download sample PDF files
| File | Details | Size | Download |
|---|---|---|---|
sample-document-a4-landscape.pdf | 1 page | 2 KB | |
sample-document-1-page.pdf | 1 page | 4 KB | |
sample-form-fillable.pdf | 1 page | 11 KB | |
sample-document-5-pages.pdf | 5 pages | 548 KB | |
sample-document-password-protected.pdf | 5 pages | 549 KB | |
sample-document-20-pages.pdf | 20 pages | 587 KB | |
sample-document-60-pages.pdf | 60 pages | 670 KB |
Need one of every documents format? Download the documents sample pack (110 KB, one small file of every documents format (14 files)).
Use these files from the command line or CI
Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.
# Download one file curl -O https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/documents/pdf/sample-document-a4-landscape.pdf # Verify it (SHA-256 is listed for every file above) shasum -a 256 sample-document-a4-landscape.pdf # Machine-readable index of every sample file curl https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="pdf")'
PDF format at a glance
| Full name | Portable Document Format |
|---|---|
| Extensions | |
| MIME type | application/pdf |
| Standard | ISO 32000 (PDF 1.7 / 2.0); Adobe, 1993 |
| Page sizes here | US Letter (612×792 pt); A4 landscape |
| Contents | Text, headings, tables, JPEG images, AcroForm fields |
| Encryption | AES-256, user password 'test' |
| Magic bytes | 25 50 44 46 ("%PDF") |
What people test with sample PDF files
- Document previewers and thumbnail generation
- Text extraction and OCR pipelines (all text is real text, not images)
- Page counting, splitting and merging
- Form-field detection and filling
- Encrypted-PDF handling (open with password, reject without)
- Upload limits — the 60-page file is a few MB
Frequently asked questions
What is the password for the protected sample PDF?
test — all lower-case. It is the user (open) password; the owner password is different, so tools that distinguish the two permission levels can be tested as well.
Can I compress, merge or convert these PDFs online?
Yes, in your browser without uploading: our free PDF Compress, PDF Merge & Split and PDF Converter tools run entirely client-side. The 20- and 60-page samples are good inputs for all three.
Why is the 1-page PDF only a few kilobytes?
Because it contains only text and vector drawing, which PDF stores very efficiently. File size in PDFs comes almost entirely from embedded images and fonts — the 5-page file is over a hundred times larger because it embeds JPEG figures.
Are these PDF files safe to download?
Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.
Can I use the sample PDF files commercially?
Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.
Can I hotlink these files or use them in CI?
Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).
Related sample files
Free tools that work with PDF
- PDF Compress — Shrink a PDF's file size right in your browser — recompresses embedded photos, nothing is uploaded.
- PDF Merge & Split — Combine multiple PDFs into one, or pull pages out of a PDF — free, in your browser, no upload.
- PDF Converter — Turn a PDF into images or text, or combine images into a PDF — free, in your browser, no upload.
Testing a file pipeline? We build them.
Uploads, conversions, previews, document processing and media workflows are the kind of production systems Pine & Birch designs and runs for clients — which is why we needed these files in the first place.
See how we can help