How to redact a PDF properly
25 January 2026 · 5 min read
Redaction is the permanent removal of sensitive content from a document before it is shared, so that no one who receives the file can recover it. Businesses redact all the time: a contract released to the market with its pricing removed, a statement shared with an auditor with other customers taken out, a report published with personal details gone. The risk is that a document can look redacted on screen while the removed content is still inside the file, one copy-and-paste away from exposure.
This guide covers how to redact a PDF properly, and how to check that it worked before the file leaves your organisation.
Related articles
- How to check that redaction removed the searchable OCR text
- How to check a PDF comment after redacting its page
- How to check an attachment after redacting a PDF page
- How to record a PDF redaction check without logging the secret
A black box over text leaves the text in the file
The most common mistake is to draw a black rectangle over the words and save the file. The rectangle hides the text on screen, but the characters beneath it remain in the document, where a reader can select, copy or search them, and where any PDF tool can lift them straight back out. The same risk applies to a separate highlight, white box or drawing object that leaves the underlying page available. The content is covered, and it is still there.
Proper redaction removes the underlying text and the image data in the marked area, so that nothing sensitive remains in the file to recover.
Clear the hidden data as well
Sensitive information hides in more than the visible text. A document carries metadata — author names, the software used, earlier saved versions — and it may hold comments, form-field values and attachments. A redaction that clears the visible page but leaves these behind still leaks. Proper redaction removes the marked content from the page and clears the metadata and hidden elements that can repeat it.
Check the result before the file leaves
A faulty redaction is easy to miss, because the page looks correct. Before a redacted document is sent, test it: search the file for the terms you removed and confirm it finds nothing, open its document properties and check the author and title fields, and look for comments or earlier versions. Apply redaction to a copy and keep the complete original under access control, because the removal is permanent and cannot be undone.
A black rectangle passed the visual check and failed extraction
A three-page synthetic PDF carried five fictional markers in native text, an image/OCR case, document properties, an annotation and an attachment. In the overlay-only copy, independent text extraction still recovered both page markers. In a page-redacted copy, the page markers disappeared from extraction while the document properties, annotation and attachment still exposed their markers. A first cleanup attempt also left a metadata value behind.
The source and output check results identify the saved variants and the checks run in that particular PyMuPDF experiment. Failure to find five known strings establishes only the result of those checks. A release reviewer still needs a trusted, qualified workflow for the file structures and disclosure decision in front of them.
Try recovering the covered text
Download the two synthetic PDFs and replay instructions. Both files deliberately retain fictional sensitive details and are unsafe to release. Unpack them into a new directory. Run these Poppler commands to read page 1 of each saved copy:
pdftotext -f 1 -l 1 -layout overlay-only.pdf -
pdftotext -f 1 -l 1 -layout page-redacted-only.pdf -
The first command returns SYNTH-REDACT-7319 from beneath the black rectangle. The second returns the surrounding text without that marker. Yet all three pages of the two files rendered identically in our 96-dpi greyscale check. To see why the second file still fails release, run sh replay.sh from the download. It reads the author field, finds the fixture’s annotation text and extracts its attached note in both copies. It also checks the hidden text layer on page 2. A clean page-text result covers only that extraction check.
Know when the released version differs from the record
Many redactions exist because one version of a document goes further than another. A tender response is evaluated in full and published in part; a contract is signed complete and shared with pricing removed. Decide which version each audience receives, redact the copy that leaves your control, and keep the full version as your record. For a set of documents released together, redact before the pages are numbered, so the Bates numbers match across the released set.
Choosing a qualified redaction workflow
Secure redaction is gated in ArkePDF pending forensic qualification. For material that must go out now, use a redaction process already qualified for the document structures you handle and have an authorised reviewer inspect the exact release copy. A black rectangle, a screenshot or a flattened annotation cannot establish that the underlying information was removed. Adobe Acrobat Pro redaction workflow.
Protect the original and the working file separately, release only the inspected copy and retain the decision with the audit evidence.
How to check that redaction removed the searchable OCR text
Test searchable OCR text after redacting an image. A clean-looking page can still contain the known marker elsewhere.
Read “How to check that redaction removed the searchable OCR text”.
How to check a PDF comment after redacting its page
Inspect comments on the saved candidate separately from its page text and record any authorised annotations that should remain.
Read “How to check a PDF comment after redacting its page”.
How to check an attachment after redacting a PDF page
Inspect embedded files after page redaction and record the owner’s decision for each attachment intended for the recipient.
Read “How to check an attachment after redacting a PDF page”.
How to record a PDF redaction check without logging the secret
Log the rule, file version and inspection outcome without reproducing the sensitive phrase in the report.
Read “How to record a PDF redaction check without logging the secret”.
Made by Arke Technologies (Pty) Ltd, Johannesburg. The linked articles were drafted with NotebookLM and independently checked and edited by Kairos (Codex).
