Use case · 19 files

Test PDF handling

PDF is the format behind most document uploads, and one of the easiest to get wrong. These files cover page counts, interactive forms, encryption, image-only scans and structural oddities.

Download all with curl
Download 19 files (1.9 MB)Shell
# 19 files, 1.9 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/document/pdf/sample-1-page.pdf
https://files.samplefiles.com/document/pdf/sample-10-pages.pdf
https://files.samplefiles.com/document/pdf/sample-100-pages.pdf
https://files.samplefiles.com/document/pdf/sample-500-pages.pdf
https://files.samplefiles.com/edge-cases/documents/1000-pages.pdf
https://files.samplefiles.com/document/pdf/sample-fillable-form.pdf
https://files.samplefiles.com/document/pdf/sample-bookmarks.pdf
https://files.samplefiles.com/edge-cases/documents/with-attachment.pdf
https://files.samplefiles.com/document/pdf/sample-password-protected.pdf
https://files.samplefiles.com/document/pdf/sample-restricted.pdf
https://files.samplefiles.com/document/pdf/sample-scanned-3-pages.pdf
https://files.samplefiles.com/document/pdf/sample-letter.pdf
https://files.samplefiles.com/document/pdf/sample-landscape.pdf
https://files.samplefiles.com/edge-cases/documents/mixed-page-sizes.pdf
https://files.samplefiles.com/edge-cases/documents/max-page-size.pdf
https://files.samplefiles.com/edge-cases/corrupt/truncated.pdf
https://files.samplefiles.com/edge-cases/empty/zero-byte.pdf
https://files.samplefiles.com/edge-cases/empty/blank-page.pdf
https://files.samplefiles.com/edge-cases/mislabeled/text-named.pdf
EOF

Page counts

For pagination, thumbnails and memory use.

FileSizeDetailsDownload
PDF, 1 pagesample-1-page.pdf3.1 KB1 pageDownload
PDF, 10 pagessample-10-pages.pdf12.8 KB10 pagesDownload
PDF, 100 pagessample-100-pages.pdf108 KB100 pagesDownload
PDF, 500 pagessample-500-pages.pdf542 KB500 pagesDownload
PDF with 1,000 pages1000-pages.pdf509 KB1,000 pagesDownload

Forms, bookmarks and attachments

Interactive features that parsers often drop.

FileSizeDetailsDownload
PDF with fillable form fieldssample-fillable-form.pdf13.4 KB1 pageDownload
PDF with bookmarks (outline)sample-bookmarks.pdf14.6 KB10 pagesDownload
PDF with an embedded file attachmentwith-attachment.pdf18.4 KB1 pageDownload

Encryption

A password to open, and owner-only permission restrictions.

FileSizeDetailsDownload
PDF, password-protectedsample-password-protected.pdf4.1 KB1 page · 🔒 passwordDownload
PDF with permission restrictionssample-restricted.pdf4.1 KB1 pageDownload

OCR

Image-only pages with no text layer.

FileSizeDetailsDownload
Scanned PDF, 3 pages (no text layer)sample-scanned-3-pages.pdf761 KB3 pagesDownload

Page sizes

Letter vs A4, landscape, mixed sizes in one file, and the maximum page size.

FileSizeDetailsDownload
PDF, US Letter sizesample-letter.pdf3.1 KB1 pageDownload
PDF, landscape A4sample-landscape.pdf3.1 KB1 pageDownload
PDF with mixed page sizesmixed-page-sizes.pdf3.8 KB6 pagesDownload
PDF at the maximum page sizemax-page-size.pdf1.4 KB1 pageDownload

Broken PDFs

Truncated, empty and fake PDFs.

FileSizeDetailsDownload
Truncated PDFtruncated.pdf9 KBDownload
Zero-byte .pdf filezero-byte.pdf0 BDownload
PDF with one blank pageblank-page.pdf1.2 KB1 pageDownload
Text file named .pdftext-named.pdf31 BDownload