Skip to content

How we test our tools

Written by the DocBelt team ·

A PDF tool can look fine on screen and still produce a broken file. So we test what you actually get: the downloaded document.

Our own sample documents

We never test on customer files. We make our own: fictional contracts, scanned pages with a blue signature over a red stamp, bank statements, invoices, ID-card-like images, forms, very large pages, password-protected and deliberately damaged PDFs. The test folder holds about 180 of them, made by small scripts so they can be rebuilt at any time.

A real browser, start to finish

Our tools are covered by automated tests. A test opens the page in Chromium, chooses a sample file, changes the settings a person would change, ticks the confirmation and downloads the result. Then other scripts open that download and check it: the number and size of pages, rotation, whether the text can still be selected, whether a signature or stamp landed where the editor showed it, whether a compressed file really is under the limit.

The damaged and protected files are there to make sure a tool stops with a clear message instead of producing a half-finished document.

What a test changed

Tests are also how we find the honest limits written on the pages. When we rewrote the guide on removing a QR code, the automatic box cut the caption under the code in half; a slightly wider box removed it completely. That went into the guide as a step, with the screenshot below.

Two crops of the cleaned flyer: on the left the caption under the removed code is cut in half, on the right it is fully removed
From our test run: automatic box on the left, wider box on the right.

Screenshots and dates

The screenshots on our rewritten pages are taken from these runs, on our sample files, not mock-ups. Those pages carry a line saying when they were tested and what changed. We change that date only when the page itself changes.

When we change something

Before a change goes live, we build the site and run the tests for the parts it touches, plus checks that pages keep their security headers and do not load anything from other websites. If a test fails, the change waits.

No test covers every PDF in the world. If a tool gets your file wrong, tell us at contact@docbelt.com (describe it, do not send the document) and we will turn it into a new test. See also What happens to your files.