Sample PDF for Testing

This sample PDF for testing helps you check upload forms, browser previews, parsers, email attachments, print flows, and QA demos without using a private document. Start with the main test file, then switch to a text, image, small, or one-page sample when your test needs a different structure.

Primary use
PDF testing
MIME type
application/pdf
Sensitive data
None

Switch files with the selector. The preview, download button, full-screen link, and copied URL update together.

Stable test file details

QA and developer-focused pages often give file sizes, but automated checks also need a stable URL, predictable content, and clear metadata. Use these details when you add the file to a manual test case, CI fixture, or bug report. For HTTP status, redirect, filename, and browser-download behavior, see Sample PDF Download. For PDF signature, version, page-tree, text-layer, and parser details, see Sample PDF File.

Direct URLhttps://samplepdf.org/files/sample.pdf
File namesample.pdf
Size843 bytes
Pages1 page
Content patternSynthetic text-only sample with predictable lines.
SHA-256f1054db56eaef90249677915b7604f075faf01756529f85dfdc1660b8f27b88d

Choose a testing goal

Different PDF tests fail for different reasons. Start with the closest goal below.

I am testing an upload form

Use the main test PDF first. Then try small, image-based, and text-based files if your form has file-size or parser rules.

I am testing a PDF viewer

Open the PDF in a new tab and compare browser preview, embedded preview, mobile display, and download behavior.

I am testing text extraction

Use the text sample PDF to check searchability, copy behavior, parser output, and PDF to Word conversion.

I am testing image or layout handling

Use the image sample PDF when thumbnails, compression, screenshots, or visual rendering matter.

PDF testing checklist

Most competing pages list files by size. This matrix maps each test goal to the right sample PDF, what to verify, and the failure you are trying to catch.

Test goalRecommended PDFWhat to verifyCommon failure
Upload validationMain sample PDF or small sample PDFAllowed extension, MIME type, size rule, progress state, success messagePDF rejected as unknown file type, size error is unclear, upload hangs
Viewer renderingOne-page sample PDFBrowser preview, iframe embed, mobile view, zoom, print icon, download iconBlank preview, blocked iframe, mobile viewer cannot scroll or zoom
Parser and extractionText sample PDFText layer, copy behavior, search, parser output, PDF to Word resultText extracted out of order, garbled characters, parser treats text as image
Visual outputSample PDF with imagesImage rendering, thumbnail generation, screenshot, compression resultMissing visual blocks, blurry thumbnail, cropped preview, layout shift
Email attachmentMain sample PDF or one-page sample PDFAttachment name, delivery, mobile preview, antivirus or mail client handlingAttachment stripped, renamed, blocked, or shown as an unknown file
Print flowOne-page sample PDFPrinter dialog, page size, margins, scale-to-fit, output orientationUnexpected blank page, clipped content, wrong paper size, margins off

Available testing variants & size matrix

Use the exact file size or page count that matches your validation rule. All files are calibrated, synthetic, and safe for automated testing.

VariantSize / PagesTarget Use CaseDedicated Page
sample-100kb.pdf100 KB (102,400 B)Lightweight mobile & API smoke testing100 KB Page
sample-1mb.pdf1 MB (1,048,576 B)Standard form boundary and upload ceiling checks1 MB Page
sample-2mb.pdf2 MB (2,097,152 B)ATS resume and job portal upload limits2 MB Page
sample-5mb.pdf5 MB (5,242,880 B)Email attachments, CRM files, and mid-tier limits5 MB Page
sample-10mb.pdf10 MB (10,485,760 B)Large file uploads, S3 chunking, and timeout stress10 MB Page
sample-20mb.pdf20 MB (20,971,520 B)Heavy payload boundaries and edge timeout testing20 MB Page
sample-5-pages.pdf5 pages (3.7 KB)Compact pagination, reader page flips & short docs5-Page Page
sample-10-pages.pdf10 pages (7.1 KB)Pagination bars, thumbnail navigation & reader QA10-Page Page
sample-50-pages.pdf50 pages (34.7 KB)Deep pagination, continuous virtual scroll & stress QA50-Page Page
sample.pdf843 bytes (1 page)General upload, download, preview, direct URL checksDownload Hub
sample-text.pdf848 bytes (1 page)Search, copy, parser, text extraction, PDF to WordText Page
sample-with-images.pdf945 bytes (1 page)Image rendering, thumbnails, compression previewImages Page

FAQ

What is a sample PDF for testing?

It is a generic PDF document used to test upload forms, preview tools, parsers, email attachments, print flows, and document handling features.

Can I use this file for automated tests?

Yes. The file is suitable for basic automated checks that need a stable PDF input, such as upload, download, and preview flows.

Does this page include different PDF test types?

Yes. You can move from the main test file to related text, image, small, and one-page sample PDFs depending on the test case.

Is this PDF safe to use in demos?

Yes. The file is generic and does not include personal, financial, medical, or legal information.

Related sample PDF testing pages