Why drawing a black box on a PDF leaves text copyable, and how to redact properly
Drawing a black rectangle in Preview, Word, or PDF comments hides words visually while leaving every character selectable underneath.
Short answer
A black shape drawn in macOS Preview, Word, or a PDF comment tool sits on top of the text stream without deleting it. Anyone pressing Cmd+A or Ctrl+A, running pdftotext, or searching the file can still copy every hidden word. Drop the file into PDF Redactor, mark sensitive phrases or boxes, and download a flattened copy. Redacted pages turn into flat pixels at 200 DPI or 300 DPI with 0 selectable characters and 0 metadata items remaining.
Why PDF content-stream stacking leaves text intact below a black rectangle
A PDF page is not a flat photograph. Under ISO 32000-1 §7.8.2 and §9.4, each page’s /Contents stream lists drawing instructions in back-to-front painter’s order.
Words are placed inside BT ... ET text objects using Tj or TJ font operators. When you draw a black rectangle in a markup tool, one of two things happens:
- Comment rectangle (
/Squareannotation): the viewer adds an entry to the page’s/Annotsarray. Recipients can drag the rectangle aside or copy the text right beneath it. - Vector path overlay (
re f): the app appends a filled rectangle after the text block. The black ink covers the glyphs visually, yet the earlier text strings stay intact in the stream.
Pressing Cmd+A on macOS or Ctrl+A on Windows selects the underlying text layer, not the painted pixels. Pasting into any text editor reveals every name, SSN, and account number immediately.
Comment rectangles vs vector overlays vs pixel burn-in
Compare the four ways people try to hide text in a PDF before sending court filings or FOIA records:
| Method | What changes in the PDF | Can readers copy hidden text? |
|---|---|---|
| Markup or comment box | Adds a movable /Square object inside /Annots. |
Yes. Text copies with Ctrl+A, and the box itself can be deleted. |
| Vector black rectangle | Appends path operators re f above BT ... ET text. |
Yes. Search engines, pdftotext, and copy-paste read every word. |
| Page crop tool | Shrinks /CropBox while keeping full /MediaBox content. |
Yes. Cropped margins and headers remain inside the file stream. |
| Pixel burn-in + metadata clear | Renders page to flat pixels, paints opaque masks, and clears /Info and annotations. |
No. Redacted pages contain 0 font operators and 0 selectable characters. |
Worked example: burning 4 redactions into a 2-page invoice and NDA
Open PDF Redactor to inspect the built-in 2-page US Letter sample (612 × 792 pt):
- Auto-found spans on page 1. The tool finds the email, phone, IBAN, and SSN, adding a 2 pt margin around each glyph box.
- 200 DPI rasterization. Page 1 renders to
round(612 × 200 ÷ 72) = 1,700 pxby 2,200 px and paints solid#000000over each box. - Selective vector preservation. Page 2 holds no redaction boxes, so its NDA clauses stay sharp vector text (841 characters) with page annotations stripped.
- Live output re-open check. Exported bytes re-open with 0 characters on page 1, 0 matches, and 0 items of metadata (down from 10).
You can open the 300 DPI [REDACTED] legal exhibit setup or open the flatten-all-pages setup directly in the tool.
Hidden metadata, sticky notes, form fields, and standalone screenshots
Visible page text is only one place where private details hide inside office files:
- Document properties and XMP streams. PDFs store author names, titles, and software history in trailer
/Infoand catalog XMP/Metadata(§14.3 of ISO 32000-1). - Comments and interactive forms. Sticky notes in
/Annotsand default field values in/AcroFormsurvive visual page edits unless removed during export. - Source Office files and photos. Drop Word, Excel, or PowerPoint files into Hidden Data Checker to spot tracked deletions, speaker notes, and GPS tags.
- Standalone PNG or JPG images. Use Redact a Screenshot on single screen captures to overwrite pixels with solid boxes instead of reversible blur.
Common mistakes
- Missing a repeated account number in page headers. Select a header or footer box and click Apply box to all pages, then check that the output match count reads 0.
- Covering text with a translucent highlighter. Semi-transparent strokes below 100% opacity leave readable contrast differences when a viewer stretches brightness levels.
- Leaving partial digits exposed when a rule requires full removal. Federal Rule 5.2 permits only the last four digits of SSNs and financial accounts in court filings, while FOIA disclosures often mask the entire identifier.
Sources
- Adobe PDF 32000-1:2008 Specification (checked 29 November 2026), §7.8.2 (content streams), §9.4 (
BTandETtext objects), §12.5.6.24 (redaction annotations), and §14.3 (metadata). - Federal Rule of Civil Procedure 5.2 (checked 29 November 2026), covering mandatory redaction of SSNs, taxpayer IDs, birth dates, and financial account numbers.
- NIST Special Publication 800-122: Guide to Protecting the Confidentiality of Personally Identifiable Information (checked 29 November 2026), for PII identification and sanitization practices.
- U.S. Department of Justice FOIA.gov Frequently Asked Questions (checked 29 November 2026), explaining statutory exemptions and redaction of sensitive portions before public disclosure.
Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.