How to Redact a PDF Safely: A Step-by-Step Guide
Key takeaways
- Drawing a black rectangle over text does NOT redact it — the underlying text layer remains searchable and copyable.
- True redaction permanently destroys the source content, not just its visual representation.
- Metadata (author, edit history, comments) must also be stripped — it often contains more sensitive data than the document body.
- Always verify redactions in a fresh viewer by attempting to select and copy the redacted regions.
- PDF Editor's redaction tool flattens and removes both the text layer and associated metadata in one pass.
Redaction sounds straightforward: cover the sensitive text, publish the document. But PDFs have a text layer beneath the visual surface, and covering text visually does not remove it from the file. A document redacted with a black rectangle in many editors — or in a word processor before saving as PDF — is not redacted at all. The underlying text is still present, still searchable, and still copyable by anyone who opens the file.
This has caused serious public embarrassments: government documents published with supposedly redacted names, legal filings with covered testimony that could be trivially extracted, medical records with obscured patient information. In each case, the error was the same: the author confused visual concealment with actual removal.
The difference between hiding and removing
A PDF is a structured format that contains separate layers:
- A content stream describing how elements are positioned and drawn on the page
- A text layer containing the Unicode characters of all text objects, used for search, copy-paste, and screen readers
- Metadata (XMP and document info dictionary) containing the author, creation date, modification history, and sometimes tracked changes or comments
When you draw a black box over text in most PDF editors, the box is added as a new visual element — but the original text object remains in the content stream and the text layer. Select-all and copy-paste in a PDF viewer extracts the text layer directly; it ignores whatever is drawn on top. Search tools do the same.
True redaction must:
- Identify the content to be removed (text, images, or both)
- Permanently delete the source objects from the content stream and text layer
- Replace the region with a solid mark (typically black or a redaction stamp)
- Strip the document metadata and any hidden layers
The visual result looks identical to a simple black rectangle. The structural result is completely different.
What to redact beyond text
Text is the most common redaction target, but it is not the only one:
- Images: a photograph of a signature, a scanned handwritten note, or an image of an ID embedded in the PDF is not covered by text redaction tools
- Metadata: the author field, creation timestamp, and modification history are stored outside the visible content. They should be stripped as part of any redaction workflow.
- Comments and annotations: tracked changes, sticky notes, and reviewer comments may contain sensitive information even if the visible document does not
- Form field data: a filled PDF form may retain the raw field values even if the fields are visually cleared
- Embedded attachments: a PDF can embed other files; those attachments must be checked and removed if sensitive
Step-by-step: how to redact correctly
Step 1: Work on a copy. Never redact the original file. Save a working copy before you begin. Keep the original (with the sensitive content) in a secure location separate from the redacted version.
Step 2: Mark for redaction, do not draw boxes. Use a tool with a dedicated redaction mode, not the drawing or shape tool. Redaction mode marks regions for removal; drawing mode marks regions visually. They look the same on screen; they produce completely different files.
Step 3: Apply the redaction. The apply step is where the actual content is removed. In PDF Editor, applying a redaction deletes the selected content objects from the document structure, replaces the region with a solid mark, and cannot be undone — which is why Step 1 (working on a copy) is mandatory.
Step 4: Strip metadata. After applying redactions, run a metadata strip on the file. This removes the author field, modification history, comments, and embedded thumbnails that may contain visual snapshots of the pre-redaction document.
Step 5: Verify before publishing. Open the redacted file in a separate viewer. Attempt to select and copy text in the redacted regions. Attempt to search for the redacted content. Run the file through a PDF text extractor. If any of these returns the redacted content, the redaction failed.
Common mistakes
Printing to PDF: some users redact a Word document with a black-highlight color change, then print-to-PDF. This sometimes works (the PDF renderer flattens everything) but is unreliable — the outcome depends on the renderer. Do not rely on it.
Using image export as a workaround: converting the PDF to images (screenshot each page) and reassembling does reliably strip the text layer, but also destroys accessibility, searchability, and file quality. It is a blunt instrument appropriate for short documents where quality loss is acceptable.
Forgetting header and footer content: auto-generated headers and footers, page numbers with document names, and watermarks may contain identifying information outside the main content area.
Using PDF Editor for redaction
PDF Editor’s redaction tool marks regions by content type (text, image, or region), applies the permanent removal in a single step, and runs a metadata clean-up automatically before saving the output. The result is a file in which the redacted content is gone from both the visual layer and the underlying document structure.
For batch redaction — removing a specific name or ID number across a long document — use the search-and-redact mode: search for the term, review the matches, and apply in one operation rather than marking regions manually.
Always verify the output before sending. The five seconds it takes to attempt a copy-paste in the redacted file is the cheapest possible insurance against a very public mistake.
Related articles
How to Share PDFs Securely: Passwords, Redaction, and Link Expiry
Sharing a PDF securely is not just about setting a password. Here's what actually works — and what only feels like it does.
How to Redact Sensitive Information from a PDF Without Desktop Software
Redacting a PDF used to require expensive desktop apps. Learn how to permanently remove sensitive text and images from any PDF file directly in your browser.
How to Prepare a PDF for a Presentation: Slides, Handouts, and Compression
Whether you're projecting slides or sharing handouts, here's how to optimize a PDF for different presentation contexts — page size, compression, and what to check before you go on screen.