Sample PDF Files — Download Test PDFs (1 to 60 Pages, Form, Password)

Portable Document Format · .pdf · MIME type application/pdf

7 files2 KB670 KBDirect linksNo ads, no sign-upFree for any useSHA-256 verified

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

FileDetailsSizeDownload
sample-document-a4-landscape.pdf
1 page • A4 landscape
1 page2 KB
2,368 bytes
Download PDF
sample-document-1-page.pdf
1 page
1 page4 KB
4,354 bytes
Download PDF
sample-form-fillable.pdf
1 page • fillable AcroForm (text, checkbox, dropdown)
1 page11 KB
11,237 bytes
Download PDF
sample-document-5-pages.pdf
5 pages
5 pages548 KB
547,966 bytes
Download PDF
sample-document-password-protected.pdf
5 pages • password: test (AES-256)
5 pages549 KB
549,303 bytes
Download PDF
sample-document-20-pages.pdf
20 pages
20 pages587 KB
586,529 bytes
Download PDF
sample-document-60-pages.pdf
60 pages
60 pages670 KB
670,340 bytes
Download PDF
7 files · direct links · no sign-up · CORS enabled

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 namePortable Document Format
Extensions.pdf
MIME typeapplication/pdf
StandardISO 32000 (PDF 1.7 / 2.0); Adobe, 1993
Page sizes hereUS Letter (612×792 pt); A4 landscape
ContentsText, headings, tables, JPEG images, AcroForm fields
EncryptionAES-256, user password 'test'
Magic bytes25 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
Testing notes. Every page carries the same header and footer, so a merge/split test can verify page order by the section number printed on each page. The fillable form's field names are name, email, company, order_id, subscribe and region.

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 CompressShrink a PDF's file size right in your browser — recompresses embedded photos, nothing is uploaded.
  • PDF Merge & SplitCombine multiple PDFs into one, or pull pages out of a PDF — free, in your browser, no upload.
  • PDF ConverterTurn 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
Free sample files by Pine & Birch — technology consulting, Toronto. Free for any use, no attribution required.