Why scanned PDFs behave differently
A digitally generated PDF stores text as characters. A scanned PDF usually stores a picture of the page, with an optional text layer produced by OCR.
- Image-only pages. The page is a raster image. There is no text to select unless OCR has added it.
- The OCR layer. Invisible text sits over the image so the file can be searched. It can contain the same identifiers as the picture.
- Metadata. Scanner model, operator name, creation time, and sometimes a patient name from the capture workflow.
- Annotations and form fields. Comments, highlights, stamps, and fillable boxes.
- Attachments. Embedded files, sometimes the original document that was scanned.
- The filename and folder. Not inside the PDF, but part of the package you share.
Find every layer before you redact
Open the file in more than one tool. A viewer shows the page. A text extraction or search shows the OCR layer. A properties panel shows metadata. Each view exposes a different surface.
| Layer | How to check | Risk if missed |
|---|---|---|
| Page image | Zoom to the identifier at full resolution | Visible PHI remains in the pixels |
| OCR text | Search for a name or record number | Hidden text is copyable even when masked visually |
| Metadata | Open document properties and the XMP panel | Scanner and operator details survive |
| Annotations | List comments, highlights, and form fields | Notes and stamps carry identifiers |
| Attachments | Check the attachments panel | An embedded original file remains intact |
| Filename | Review the name and folder before sending | The record number travels with the file |
Redact destructively, then rebuild the page
A redaction annotation is an instruction to the viewer. It is not a change to the page. Destructive redaction removes the information from the file itself.
- Render the page at a resolution high enough to keep the remaining content legible, typically 300 DPI.
- Overwrite the identifier in the raster image. Do not place a rectangle on top of it.
- Rebuild the page without the hidden text under the mask. If the OCR layer is kept, remove or replace the text that corresponded to the redacted region.
- Save a new file. Do not use an incremental update that leaves the original objects in the PDF.
- Repeat the check for every page, not only the pages that look busy.
Rebuilding the page has a cost. Rasterized text is no longer selectable, and aggressive recompression can make small print hard to read. Use a resolution that preserves the clinical content, and check the rebuilt page at normal reading size as well as at full zoom. The goal is a file that is both legible and stripped of the identifiers you removed.
Prepare scans for better OCR
OCR quality depends on the capture. When you control the scan, aim for 300 DPI, a straight page, and even contrast. Avoid heavy JPEG compression, and scan one page at a time when the feeder tends to skew.
Some material stays difficult: handwriting, stamps over text, thermal fax paper, colored backgrounds, and tables with faint rules. PHIPass does not apply adaptive binarization or automatic skew correction, so these pages need a manual review even when detection finds something.
Review and verify the output
Verification is a separate step from redaction. Read the exported file the way a recipient would.
- Reopen the exported PDF and search for the patient name, record number, and date.
- Try to select and copy text over each redacted area.
- Inspect document properties and the XMP metadata.
- Open the annotations and attachments panels.
- Zoom to 200 percent on each masked region and check the edges.
- Compare the protected copy with the original page by page.
- Record who reviewed the file and when.
What PHIPass does and does not do
PHIPass runs OCR locally, masks detected text in the page image, and reopens the protected copy for verification before export. Low-confidence regions are surfaced for a reviewer instead of being cleared silently. Every finding gets a Remove or Keep decision.
Limits to plan around
PHIPass does not apply adaptive binarization or skew correction, and it does not read handwriting reliably. Faint text, stamps, complex tables, and identifiers embedded in graphics need manual review. The protected copy is a reviewed draft, not a certification that the file is free of identifiers.
Frequently asked questions
Does drawing a black box over a scanned PDF remove the PHI?
No. A rectangle drawn in a viewer is usually an annotation. The text and pixels underneath remain in the file and can be copied or extracted. The identifier has to be removed from the page image and the text layer.
Why does my redacted scan still contain searchable text?
The OCR layer was not rebuilt. Masking the visible image does not remove the invisible text positioned over it. The text under each mask has to be deleted or replaced as part of the redaction.
What resolution should a scanned PDF be for OCR?
Around 300 DPI is a practical target for typed documents. Lower resolution and heavy compression reduce accuracy, especially on small fonts and tables. Higher resolution helps but does not fix skew, blur, or handwriting.
Can PHIPass redact handwriting in a scanned record?
Not reliably. Handwriting recognition is outside the supported workflow, and handwriting should be reviewed and masked manually. Use the tool for typed text and treat handwritten regions as a manual task.
Next Step
Put these de-identification practices into action.
See how PHIPass handles a synthetic record, review the annual plans, or check which surfaces the app can inspect before you commit.