Free PDF sample, test and dummy files

Fixed-layout documents that look the same on every device. The most common format for upload forms that accept documents. Download valid PDF test files in 18 exact sizes, from 5 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.pdf
MIME type
application/pdf
Kind
Binary
Category
Documents

Create a PDF file of any size

Choose any size from 1,125 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

PDF files by size

Every file below is a valid Portable Document Format file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

PDF sample files by size
FileSizePages / Sheets & Content FeaturesDownload
5 KB PDF samplesample-pdf-5kb.pdf 5 KB5,120 bytes Pages: 1 · Helvetica selectable text, vector rule, A4 layout Download PDF
10 KB PDF samplesample-pdf-10kb.pdf 10 KB10,240 bytes Pages: 2 · Multi-page selectable text, section headings, A4 layout Download PDF
25 KB PDF samplesample-pdf-25kb.pdf 25 KB25,600 bytes Pages: 5 · Selectable text, structured paragraphs, cross-reference table Download PDF
50 KB PDF samplesample-pdf-50kb.pdf 50 KB51,200 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
100 KB PDF samplesample-pdf-100kb.pdf 100 KB102,400 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
200 KB PDF samplesample-pdf-200kb.pdf 200 KB204,800 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
500 KB PDF samplesample-pdf-500kb.pdf 500 KB512,000 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
1 MB PDF samplesample-pdf-1mb.pdf 1 MB1,048,576 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
2 MB PDF samplesample-pdf-2mb.pdf 2 MB2,097,152 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
3 MB PDF samplesample-pdf-3mb.pdf 3 MB3,145,728 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
5 MB PDF samplesample-pdf-5mb.pdf 5 MB5,242,880 bytes Pages: 11 · Selectable text + embedded raster image stream (DCT/Flate) Download PDF
10 MB PDF samplesample-pdf-10mb.pdf 10 MB10,485,760 bytes Pages: 13 · Selectable text + multiple high-resolution embedded images Download PDF
15 MB PDF samplesample-pdf-15mb.pdf 15 MB15,728,640 bytes Pages: 14 · Selectable text + full-page raster image objects Download PDF
20 MB PDF samplesample-pdf-20mb.pdf 20 MB20,971,520 bytes Pages: 16 · Selectable text + multi-page image streams for renderer stress testing Download PDF
25 MB PDF samplesample-pdf-25mb.pdf 25 MB26,214,400 bytes Pages: 18 · Selectable text + high-density embedded image streams Download PDF
30 MB PDF samplesample-pdf-30mb.pdf 30 MB31,457,280 bytes Pages: 19 · Selectable text + large embedded raster streams Download PDF
50 MB PDF samplesample-pdf-50mb.pdf 50 MB52,428,800 bytes Pages: 26 · Selectable text + 26-page image & document structure Download PDF
100 MB PDF samplesample-pdf-100mb.pdf 100 MB104,857,600 bytes Pages: 44 · Selectable text + 44-page document & image stress fixture Download PDF

More PDF samples

Hand-designed files with realistic content or a specific edge case. Files described as corrupted or truncated are invalid on purpose, for testing how software reacts to a damaged PDF file.

Curated PDF sample files
FileSizePages / Sheets & Content FeaturesDownload
Sample business report PDF (multi-page)sample-business-report.pdf 399 KB408,822 bytes Page size: A4 (595 x 842 pt) Download PDF
Sample invoice PDF (single page)sample-invoice.pdf 2.25 KB2,304 bytes Pages: 1 · Helvetica selectable text, vector rule, A4 layout Download PDF
Sample PDF with 10 pagessample-pdf-10-pages.pdf 12.6 KB12,855 bytes Pages: 10 · Selectable text, multi-page TOC & headers, comment padding Download PDF
Sample PDF with images (3 pages)sample-pdf-with-images.pdf 1.45 MB1,521,229 bytes Pages: 3 Download PDF
Sample PDF with form fields (fillable)sample-pdf-form-fields.pdf 7.75 KB7,938 bytes Fields: 7 Download PDF
Password-protected PDF samplesample-pdf-password-protected.pdf 2.28 KB2,331 bytes Password to open: sample Download PDF
Corrupted PDF file for testing (truncated)sample-pdf-corrupted.pdf 7.53 KB7,713 bytes Damage: Truncated to 60% of its length Download PDF

What is a PDF file?

PDF describes each page as a fixed arrangement of text, vector graphics and images, so a document prints and displays identically everywhere. It was created by Adobe in 1993 and has been an open ISO standard (ISO 32000) since 2008.

A PDF file is a sequence of numbered objects followed by a cross-reference table that tells a reader where each object starts. That structure is why a truncated PDF usually fails to open: the table at the end of the file is missing.

How to recognise a PDF file

Software recognises a PDF file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.

The first bytes of every file.
Extension.pdf
MIME typeapplication/pdf
StandardISO 32000-1 (PDF 1.7) and ISO 32000-2 (PDF 2.0)
StructureHeader, body objects, cross-reference table, trailer
CompressionOptional per stream (Flate, DCT, JBIG2 and others)
Can containText, fonts, images, forms, JavaScript, attachments, encryption

What to test for

These are the behaviours that most often go wrong when software handles PDF files.

Strengths of PDF

  • Looks identical on every device and in print.
  • An open ISO standard with readers built into every browser.

Limitations of PDF

  • Hard to edit and awkward to extract structured data from.
  • Text does not reflow, so pages are tiring to read on a phone.

Typical uses of PDF test files

  • Testing document upload forms and size limits
  • Checking in-browser PDF previews
  • Verifying text extraction and page counts
  • Exercising virus scanning and content inspection

Software that opens PDF

  • Adobe Acrobat Reader
  • Chrome, Edge, Firefox and Safari (built-in viewers)
  • Apple Preview
  • Foxit Reader
  • pdf.js, PDFium and Poppler libraries

Specifications

Related

PDF sample files: questions

Do the sample PDFs contain selectable text?
Yes. Every sample has real text set in the standard Helvetica font, so you can test text extraction and search. The larger files add full-page images to reach their size.
Are the PDFs password-protected or signed?
The sized files are not: they are unencrypted, unsigned and contain no forms, scripts or attachments. The curated list on this page adds a password-protected PDF, with its password stated, and a PDF with fillable form fields.
What is the MIME type of a PDF file?
The MIME type is application/pdf. The file extension is .pdf.
Is a sample PDF file the same as a dummy or example PDF file?
Yes. Sample, test, dummy and example PDF files are different names for the same thing: a PDF file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy PDF file.

Opening large files

Keep this tab open until your browser reports that the download is complete. Check the saved file size against the byte count on this page; a partial download may not open. For ordinary viewer tests, start with a 5 MB or 10 MB sample. Large samples are stress-test fixtures and may exceed the memory or file-size limits of your viewer.