RedactDrop › Test PDFs
PDF Redaction Regression Pack JP
PDFs that are hard to redact properly, each labelled with what it is a trap for and what a correct result looks like. They are the files RedactDrop's engine is tested against before every release. The pack is for people who build or test PDF redaction: developers, QA and security reviewers.
What is in it
- 106 PDFs. 24 are made the way real software makes PDFs (Chrome's “Save as PDF” and pdf-lib). 12 are Japanese documents of the kinds people in Japan redact: an invoice with its registration number, a withholding slip, a payslip, a page laid out like a residence certificate, a lease, a bank statement, a resume, a My Number notice, two in vertical writing, one with ruby and one in full-width digits. 70 are hand-built, each to reproduce one trap; most came out of adversarial reviews of the engine.
- A manifest (
manifest.json) that gives every file its traps, its page count, the words to remove, the text that must still be there afterwards, and the expected result. That result is whether the file is written or refused (with the reasons), how many matches there are, and the black boxes painted on each page, as PDF coordinates. - Japanese text in 15 of the files: the 12 Japanese documents, and three more (two columns, vertical writing, CID fonts). The rest are in Latin script, mostly English.
| Category | What it tests | Files |
|---|---|---|
hidden-text | Text a reader does not see: ActualText, marked content, structure tree, unused objects | 14 |
metadata-and-revisions | Document information, XMP, earlier revisions, object streams, encryption | 4 |
fonts-and-encoding | Type 3, Differences, CID fonts, no ToUnicode, PDFDocEncoding, surrogate pairs | 17 |
text-layout | Split and kerned TJ, rotation, vertical writing, columns, tables, spacing | 27 |
resources-and-xobjects | Inherited, shared and nested resources and Form XObjects, name collisions | 14 |
annotations-forms-attachments | Annotations, form fields, attachments, links, bookmarks, actions | 11 |
images-and-filters | Inline images, data after a JPEG's end, predictors, filter chains, scans | 36 |
syntax-edge-cases | Invalid strings and names, duplicate keys, unknown operators | 20 |
over-redaction-controls | The word is not there, and nothing may be damaged | 10 |
scale | Many pages | 3 |
japanese-documents | Japanese text and documents: invoices, payroll, resident records, leases, vertical writing, ruby, full-width digits | 14 |
The expected results are what RedactDrop's engine does with each file today: 98 are written, 7 are refused, with the reasons, because a page could not be redacted and checked as it should be, and 1 (encrypted) is refused when it is opened. A refusal is an expected result too.
Three samples
- c02-report-ja-2col.pdf (expected result for c02): Japanese text in two columns, with a table, header and footer, saved from Chrome.
- p10-metadata-structure.pdf (expected result for p10): the words in the document information, XMP, the structure tree and ActualText, not only on the page.
- r1-inherited-resources.pdf (expected result for r1): a word inside a Form XObject that inherits its page's resources, drawn in pieces.
The manifest of all 106 files and the pack's README are free to read as well.
People and data
Every name, address, number and code word in these files is made up. The card numbers are well-known test numbers and the e-mail addresses use example.com. In the Japanese documents every address is on “0 丁目”, which no town has, the invoice registration number has a check digit that does not match, and the My Number is a test number. No file was ever a real document: each is made by a script, and before it is packed each file is searched for anything that would identify a person or a machine.
The full pack
The full pack has all 106 PDFs with an expected result for each. It is not on sale yet. If you would use it, tell us: the button opens your e-mail program with a message to [email protected].
This page asks for no e-mail address. Pressing the button is counted, with the page's language and nothing else (see Google Analytics: what it is sent in the privacy notice). Use of the files is provisionally for evaluation only (testing your own software); final terms will be set before the full pack is offered.
Questions
What is in the pack?
PDFs that are hard to redact, and a manifest that gives every file its traps, the words to remove, the text that must still be there afterwards and the expected result: written or refused, how many matches, and the black boxes on each page. The samples and the manifest of every file can be downloaded from this page.
Do the files contain personal data?
No real personal data. Every name, address, number and code word is made up, and no file was ever a real document: each is made by a script, and before it is packed it is searched for anything that would identify a person or a machine. The card numbers are well-known test numbers and the e-mail addresses use example.com.
Under what licence can I use the files?
For now, provisionally, for evaluation only: testing your own software. The final terms will be set before the full pack is offered.
How do I get the full pack?
Press “Request full pack”. It opens your e-mail program with a message to [email protected]. The full pack is not on sale yet; a message tells us you would use it. This page asks for no e-mail address.