How We Test Our PDF Tools: Files, Method and Limits
The measurements in our guides come from real runs of our own tools on generated test files. Here is exactly what we used and what the numbers can and cannot tell you.
On this page
Many guides about PDF tools describe what a tool should do. We wanted our guides to say what ours actually does, so we ran the tools' own code on a set of test files and wrote down the results. This page explains how, so you can judge how far to trust the numbers.
The test files
Every file was generated by a script with a fixed random seed. None is a customer document. They were chosen to behave like the common real cases:
| File | What it is | Size |
|---|---|---|
| Text report | 20 pages of text, 5 bookmarks, 4 internal links | 35 KB |
| Scan-style PDF | 12 pages of text saved as slightly tilted, noisy images at 200 dpi | 11.2 MB |
| Photo brochure | 8 pages, two colour photos per page | 8.2 MB |
| Fillable form | 4 text fields and 2 checkboxes | 9 KB |
| Price list | 3 pages, a ruled table of 25 rows and 4 columns per page (300 data cells) | 6 KB |
| Two-column article | 4 pages, two columns with headings | 8 KB |
| Slide deck | 10 landscape pages with a title, bullets and a shape | 8 KB |
| Word document | A heading, paragraphs, a 4x3 table and a photo | 0.4 MB |
| OCR images | The same 10 lines of text, clean, blurred, noisy, low resolution and tilted 6 degrees | 20-680 KB |
| Photos | Three generated photos at 4032x3024, 3024x4032 and 1600x1200 pixels | 0.2-1.3 MB |
| Real photographs | Five sample photographs from the scikit-image data set (public domain or CC0), about 0.1 to 0.9 megapixels each, used for image size and quality tests | 0.2-1.4 MB |
What we measured and how
- Sizes and times come straight from the output files and a clock around each operation.
- Text accuracy means: of the words we know are in the source, what share appear in the result. We count words, not layout.
- Browser tools (Crop, Resize, Rotate, Flip, Blur, Watermark, QR codes, Base64) run in your browser, so we drove the real pages in a Chromium browser and measured the files they downloaded.
- Structure checks open the result with a separate library and count things such as pages, bookmarks, links, form fields, tables, slides and text boxes.
- Security checks use qpdf to read the encryption method and permissions of a protected file.
The tests call the same functions the tool pages use, not a separate implementation, so a result reflects what the tool does.
Software used
| Component | Version |
|---|---|
| Ghostscript (compression) | 10.02.1 |
| PyMuPDF (editing, numbering, watermark, rendering) | 1.28.0 |
| LibreOffice (Office conversions) | 24.2.7.2 |
| Tesseract (OCR) | 5.3.4 |
| Python | 3.12.3 |
Other versions can give different sizes and accuracy. That is why we repeat the tests when these components change.
What the numbers cannot tell you
- The files are synthetic. Real scans and photos are messier, so OCR and compression results on real files will usually be worse than ours; read them as a best case.
- We checked text and structure, not how a page looks. A converted document can contain all the right words and still look different.
- Speed was measured on one machine and will vary on a busy server.
- We tested each tool on the cases listed above, not on every possible PDF.
What the testing changed in our guides
Testing found places where our own tools did not behave as a user would expect, and places where guides assumed behaviour the tools did not have. We fixed the tools and then repeated the tests. The fixes: the compressor no longer returns a file larger than the original; merging and the page tools keep bookmarks and form fields; PDF to PowerPoint produces editable text boxes instead of picture-only slides; PDF to Excel stores numbers as numbers; Images to PDF offers A4, Letter or same-size pages and no longer inflates the file; custom split ranges can make one file or one file per range; the Cover tool removes the text underneath; and Fill & Sign can flatten a form. Where a guide described something the tool does not do, we changed the guide. Each result is explained in the relevant guide, including the compression guide and the merge guide.
Try any of the tools on your own file and compare the result with the numbers in the guides.
Open Compress PDF →Frequently asked questions
Are the test files real customer documents?
No. Every test file is generated by a script, so no customer file is ever used. The generator uses a fixed random seed, so the same files can be produced again.
Will my files give the same numbers?
No. Results depend heavily on what is inside a PDF, especially how many pictures it contains. Treat our numbers as examples of what to look for, and compare the sizes and pages your own result shows.
How often are the tests repeated?
They are repeated when the software behind a tool changes (Ghostscript, PyMuPDF, LibreOffice or Tesseract), and the affected guides are updated.