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
# 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
EOFPage counts
For pagination, thumbnails and memory use.
| File | Size | Details | Download |
|---|---|---|---|
| PDF, 1 pagesample-1-page.pdf | 3.1 KB | 1 page | Download |
| PDF, 10 pagessample-10-pages.pdf | 12.8 KB | 10 pages | Download |
| PDF, 100 pagessample-100-pages.pdf | 108 KB | 100 pages | Download |
| PDF, 500 pagessample-500-pages.pdf | 542 KB | 500 pages | Download |
| PDF with 1,000 pages1000-pages.pdf | 509 KB | 1,000 pages | Download |
Forms, bookmarks and attachments
Interactive features that parsers often drop.
| File | Size | Details | Download |
|---|---|---|---|
| PDF with fillable form fieldssample-fillable-form.pdf | 13.4 KB | 1 page | Download |
| PDF with bookmarks (outline)sample-bookmarks.pdf | 14.6 KB | 10 pages | Download |
| PDF with an embedded file attachmentwith-attachment.pdf | 18.4 KB | 1 page | Download |
Encryption
A password to open, and owner-only permission restrictions.
| File | Size | Details | Download |
|---|---|---|---|
| PDF, password-protectedsample-password-protected.pdf | 4.1 KB | 1 page · 🔒 password | Download |
| PDF with permission restrictionssample-restricted.pdf | 4.1 KB | 1 page | Download |
OCR
Image-only pages with no text layer.
| File | Size | Details | Download |
|---|---|---|---|
| Scanned PDF, 3 pages (no text layer)sample-scanned-3-pages.pdf | 761 KB | 3 pages | Download |
Page sizes
Letter vs A4, landscape, mixed sizes in one file, and the maximum page size.
| File | Size | Details | Download |
|---|---|---|---|
| PDF, US Letter sizesample-letter.pdf | 3.1 KB | 1 page | Download |
| PDF, landscape A4sample-landscape.pdf | 3.1 KB | 1 page | Download |
| PDF with mixed page sizesmixed-page-sizes.pdf | 3.8 KB | 6 pages | Download |
| PDF at the maximum page sizemax-page-size.pdf | 1.4 KB | 1 page | Download |
Broken PDFs
Truncated, empty and fake PDFs.
| File | Size | Details | Download |
|---|---|---|---|
| Truncated PDFtruncated.pdf | 9 KB | Download | |
| Zero-byte .pdf filezero-byte.pdf | 0 B | Download | |
| PDF with one blank pageblank-page.pdf | 1.2 KB | 1 page | Download |
| Text file named .pdftext-named.pdf | 31 B | Download |