PDFs

How to remove hidden text from a PDF

A PDF is a container, not just a picture of pages. The visible page may sit alongside a text layer, form values, annotations, attachments, links, accessibility tags, and document properties. Covering the page is only half the job; the exported copy must also leave the unwanted PDF objects behind.

Put this guide into practice: Redact a PDF. Review the file and the tradeoffs of image-based output.

About this guide

By Derek Brumby · Product behavior checked with synthetic FreeRedact test files

Published · Updated · 10 minute read

How this guide was checked

This workflow was checked with synthetic text PDFs, image-only PDFs, form-like pages, and pages containing obvious annotations. Tests used fictional names, addresses, and IDs.

The process below uses only fictional sample information. Test the workflow with harmless data before relying on it for a sensitive file.

Inventory what the original PDF contains

Before editing, save a private original and inspect the file in a capable PDF viewer. Can you select text? Does search find a name? Are there comments, form fields, attachments, or links? What appears in document properties? This inventory tells you what must disappear from the shareable copy.

Do not use the sensitive value as a filename for either the original or the redacted copy. A perfectly sanitized page can still be undermined by a filename that contains a customer name, case number, or health condition.

Redact visible information on every page

Review page thumbnails first to avoid skipping a page, then inspect each page at a readable zoom. Automatic suggestions can help locate common patterns, but you should also look for handwritten notes, signatures, faces, letterheads, stamps, barcodes, and uncommon internal identifiers.

If the same value appears repeatedly, cover every instance. Page headers, footers, tables of contents, and reply chains are frequent sources of duplicates.

  • Names, signatures, faces, addresses, phone numbers, and email addresses
  • Account, patient, claim, employee, invoice, and case identifiers
  • Financial details, tax IDs, dates of birth, and access credentials
  • QR codes and barcodes that may encode a visible or hidden identifier

Rebuild a clean shareable copy

FreeRedact converts reviewed pages into flattened images and assembles those images into a new PDF. It does not carry forward the original text layer, comments, forms, links, attachments, or document metadata. That destructive export is intentional: the shareable copy contains the reviewed page appearance, not the original PDF structure.

Keep your editable original in an access-controlled location if you need search, accessibility, forms, links, or archival fidelity. Label the sanitized file clearly so recipients do not mistake it for the source record.

Test both visible and hidden channels

A visual pass catches incomplete boxes, but only a content pass catches searchable text and document objects. Search for the full original value and several fragments. Copy all remaining text into a temporary text editor and scan the result. Open properties and any panels for comments or attachments.

For higher-risk sharing, have a second reviewer work from the sanitized file and a checklist. The reviewer should not rely on your memory of what you intended to remove.

Tested workflow

  1. Create an inventory on a private copy

    Record page count, searchable sample values, document properties, forms, comments, links, and attachments before redaction.

    • Page count is known
    • At least one test search is recorded
    • The original stays private
  2. Review all pages and export a flattened PDF

    Accept appropriate suggestions, add manual redactions, inspect thumbnails for missed pages, and download a new sanitized PDF.

    • Every page was opened
    • Repeated values were checked
    • A new filename was used
  3. Repeat the inventory on the export

    Run the same searches and panel checks against the downloaded copy. Compare results rather than relying on the black boxes alone.

    • Original values are absent
    • No forms or attachments remain
    • Properties contain no private source details

Example: Synthetic two-page case file

A fictional PDF contains a cover page and notes page. The same demo name appears in the heading, footer, and a selectable text layer.

The fictional source contains

  • Client: Morgan Vale
  • Case ID: DEMO-4821
  • Email: morgan.vale@example.test
  • Status: Ready for external review

Redact

  • Morgan Vale on both pages
  • morgan.vale@example.test
  • DEMO-4821 when the recipient does not need it

Keep when needed

  • Status
  • Generic field labels
  • Dates only when required for the review

Expected result: The sanitized PDF shows opaque boxes, search finds none of the fictional values, copied text contains none of them, and comment, form, and attachment panels are empty.

Verification checklist

Run these checks against the downloaded file, not only the editor preview.

  • Confirm the sanitized file has the expected number and order of pages.
  • Search for each full redacted value and at least one distinctive fragment.
  • Select all available text, copy it into a temporary text editor, and review the result.
  • Check properties, comments, forms, layers, links, and attachments in a full PDF viewer.
  • Zoom into every redaction and inspect signatures, barcodes, images, headers, and footers.
  • Open the PDF in a second viewer and repeat the most important search.
  • Delete the temporary pasted text when the review is complete.

Limitations and decisions that remain yours

  • Image-only output is not searchable, selectable, tagged, form-enabled, or suitable as a replacement for every archival original.
  • Password-protected or malformed PDFs may need to be unlocked or repaired with the authorized source application first.
  • OCR and automatic detection can miss handwriting, low-quality scans, unusual layouts, and uncommon identifiers.
  • Legal filing and records-retention rules may require a specific approved redaction process; confirm those requirements before submission.

Sources and further reading

These sources support the file-format and privacy practices discussed above. Product-specific behavior is described from FreeRedact’s documented workflow and synthetic tests.

Ready to check a file?

Open FreeRedact, review every suggestion, add anything the scan missed, and inspect the downloaded copy before sharing. No signup is required.

Redact a PDF