Hide what matters
en
Redact a PDF

Guides07 of 07

How to redact a scanned PDF

A scan has no text to select, so the usual advice fails. What actually works on a bitmap page, why flattening matters, and the hidden layer that catches people.

Last updated: September 18, 2026

07

You have a photographed contract, or a passport copy, or a payslip somebody scanned at the office. One name has to go. Every guide says the same thing: select the text, apply redaction. You drag across the name and nothing highlights. The cursor doesn’t even change shape.

Nothing is broken. There is no text there to select.

01

The page is a photograph

A native PDF stores text as instructions, one per glyph, with coordinates and a font. A simple scan may store just a page image. Other scanned PDFs also contain text, metadata or additional objects. The name you are looking at is a cluster of dark pixels inside a JPEG. As far as the file is concerned, it is the same kind of object as the shadow of the scanner lid.

So selection has nothing to grab. Selection tools read the content stream, and on a scanned page the content stream says roughly: draw this image, full width, full height. That is the whole page. Search finds nothing and extraction comes back empty.

02

Here, the black box can actually work

This is the one case where the obvious approach is salvageable, which is not what people expect after being told a hundred times that rectangles don’t redact.

On a genuine scan there is no text hiding underneath, because there is no text anywhere. If you paint a filled rectangle over the pixels and then flatten the page, the pixels under the box are overwritten by the box. They are not covered. They stop existing.

For this image-only method, the export must render each page to a new bitmap with the rectangle already burned in, then rebuild the PDF from those images. A native redaction tool can instead remove the relevant image pixels and any overlapping text without turning the whole page into a new image. If the tool keeps the original scan and stacks a shape above it, you now have a black rectangle sitting on top of an intact photograph of the name, and pulling the embedded images out of a PDF is a single command for anyone who thinks to try.

03

Check whether your scan is really a scan

Plenty of documents that look like scans are not pure scans any more. Scanner software, document management systems, and anything with a “searchable PDF” option will run OCR and write the recognised words back into the file as an invisible text layer, positioned to sit exactly over the image. The page looks identical. The file now holds both a picture of the name and a real, extractable string of it.

Draw a box on the image and you have covered the pixels for the eye. The text layer is untouched and comes straight out with copy-paste, which is the black rectangle problem with a photograph laid over it.

Test it before you do anything else. Open the file and drag across a line of body text. If a highlight appears, or Ctrl+F finds a word you can see on the page, there is a text layer and you must remove that content as well as the pixels. Check page by page, because mixed documents are common: a typed cover sheet, then twelve scanned pages, then a signed appendix.

Then run that same check on the exported file, not the one you were editing.

04

An annotation is not a flattened box

A rectangle saved as a PDF annotation is a separate object in the file, with its own coordinates, colour and entry in the page’s annotation list. Readers let you click it, drag it, delete it. Even where the interface won’t, the object is sitting in the file structure and stripping annotations is trivial.

Flattening ends that argument. The shape stops being an object and becomes dark pixels in the page image, with nothing left to select or delete.

Printing to PDF is not proof of safe redaction. Print pipelines can preserve text or image content beneath an overlay. Even “flattening” can mean merging annotations while leaving underlying content intact. For an image-only method, look for explicit rasterisation, then verify the exported file.

05

Resolution, and the copy you forgot about

Some export paths reduce image resolution. A low-resolution scan can become unreadable, and reduced quality does not prove that sensitive content is gone. Check both readability and redactions before sending it.

The privacy problem is elsewhere in the file. Scanner software and office suites sometimes embed a thumbnail or preview image of each page, and a file saved incrementally can keep earlier revisions inside it. If that preview was generated before you drew the box, it is a small copy of the unredacted page riding along in the same document. Use an export that rebuilds and sanitises the file, then check its properties and attachments. A new filename alone does not remove old revisions or hidden copies.

06

OCR, used deliberately

Running OCR yourself is what makes this bearable. Recognise the text first and a tool can read the page well enough to propose candidates: names, ID numbers, dates of birth, account numbers. The boxes land on the right coordinates because recognition returns a position for every word, not just a transcript.

OCR misreads, though. Faint fax copies, skewed pages, handwriting in the margin, a 5 read as an S. Treat the candidates as a starting point and read the page yourself, because nothing downstream catches what the recogniser missed. The export must remove the marked pixels and any hidden text, either through native redaction or a fresh image-only copy. Finding the name accurately does nothing if the box is only stacked on top of it.

hddn runs OCR in the browser and suggests redactions for you to review. It tries native export first. If that export is refused, it explains why and offers an image-only PDF only with your explicit consent. That fallback burns the confirmed boxes into newly rendered page images and loses searchable text and accessibility information. Scanned pages can be redacted, but their text cannot be edited.

A scan feels safer than a text PDF because nothing selects and nothing searches. That feeling is the risk. Drag across one line before you draw a single box, and find out whether the file has been quietly transcribing itself this whole time.

How it works

Four steps. You stay in charge of every one.

  1. 01

    Open your PDF

    Drop the file onto the page. Your browser opens it right on your device.

  2. 02

    Find sensitive details

    Names, emails, IDs, account numbers, and dates that may need to be hidden get highlighted.

  3. 03

    You review everything

    Confirm the marks, reject the ones you disagree with, or add your own by blacking out any text or area. On digital PDFs you can even edit the words. Nothing is hidden until you approve it.

  4. 04

    Export a clean PDF

    Confirmed content is removed from the PDF, not just covered. Save the exported copy and check it before sharing.