[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fnr151oevnh1q":3},{"_id":4,"slug":5,"title":6,"subtitle":7,"kind":8,"cards":9,"tags":58,"categories":60,"source":62,"lang":65,"author":66,"audioState":69,"stats":70,"publishedAt":73,"renderer":74},"6abbd68dca21c797c7e9e0b5","how-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433","How to properly redact a PDF so the text is actually gone","Drawing a black rectangle over sensitive text in a PDF does not redact it.","news",[10,13,18,23,28,33,38,43,48,53],{"headline":6,"body":11,"imageUrl":12,"sourceImageUrl":12},"Drawing a black rectangle over sensitive text in a PDF does not redact it. I need you to understand this before anything else, because people get fired, sued, and embarrassed over this exact mistake.","https:\u002F\u002Fmedia2.dev.to\u002Fdynamic\u002Fimage\u002Fwidth=1200,height=627,fit=cover,gravity=auto,format=auto\u002Fhttps%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl420fujenac7z0j333zn.png",{"headline":14,"body":15,"imageUrl":16,"images":17},"A PDF is not an image. When you","A PDF is not an image. When you draw a black box over text, you're adding a new object on top of the text. The text is still there, in the file, in the content stream, fully selectable, copyable, and extractable. Anyone who selects the \"redacted\" area and pastes it into a text editor gets your secrets. Anyone who runs a text-extraction script gets all of them at once. This has happened to governments, law firms, and newspapers. It's not a theoretical risk. Before trusting any redaction, do this: Try to select the text underneath a black box with your cursor. Copy it. Paste it into a text editor. If anything pastes, the redaction failed. It doesn't matter what the tool promised. The file is the truth.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F1.webp",{"local":16},{"headline":19,"body":20,"imageUrl":21,"images":22},"For a stronger check, run a text extraction","For a stronger check, run a text extraction tool over the whole document and search the output for the sensitive terms. If they appear, the content stream still contains them. What proper redaction actually means Real redaction has two parts, and both are required:","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F2.webp",{"local":21},{"headline":24,"body":25,"imageUrl":26,"images":27},"Remove the content from the file. The text-showing","Remove the content from the file. The text-showing operations for the sensitive content must be deleted from the page's content stream — not covered, deleted. The bytes should not exist in the exported file.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F3.webp",{"local":26},{"headline":29,"body":30,"imageUrl":31,"images":32},"Burn the visual mark into the page. The","Burn the visual mark into the page. The black box should be part of the rendered page content, so the document still reads naturally with visible redaction marks. If a tool only does step 2, it's a highlighter with bad intentions. How to do it properly (step by step)","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F4.webp",{"local":31},{"headline":34,"body":35,"imageUrl":36,"images":37},"Using PDF Studio (free, runs in your browser","Using PDF Studio (free, runs in your browser, no signup — and relevantly, your document never uploads anywhere, which matters when the document needs redacting): Open https:\u002F\u002Fnavigatorslab.com\u002Fpdf-studio\u002F and load your PDF. Nothing uploads; everything happens on your machine.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F5.webp",{"local":36},{"headline":39,"body":40,"imageUrl":41,"images":42},"Select the redaction tool and mark every piece","Select the redaction tool and mark every piece of sensitive text. Be thorough — and don't forget metadata-adjacent content: headers, footers, and text baked into scanned images needs OCR-aware handling.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F6.webp",{"local":41},{"headline":44,"body":45,"imageUrl":46,"images":47},"Apply the redaction and export the PDF. The","Apply the redaction and export the PDF. The export rewrites the page content streams with the marked content removed, then burns in the black boxes.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F7.webp",{"local":46},{"headline":49,"body":50,"imageUrl":51,"images":52},"Verify. This step is not optional. Open the","Verify. This step is not optional. Open the exported file, try the 30-second select-and-copy test on every redacted region. Then run text extraction across the whole document and search for the sensitive terms. They should be absent.","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F8.webp",{"local":51},{"headline":54,"body":55,"imageUrl":56,"images":57},"Check the document metadata too (File → Properties","Check the document metadata too (File → Properties in most readers). Author names and revision history have leaked through \"redacted\" documents before. What about scanned documents?","\u002Fapi\u002Fmedia\u002Fposts\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-b666a433\u002F9.webp",{"local":56},[59],"dev",[61],"Technology",{"name":63,"url":64},"Dev.to","https:\u002F\u002Fdev.to\u002Fkayforkind\u002Fhow-to-properly-redact-a-pdf-so-the-text-is-actually-gone-5alf","en",{"handle":67,"displayName":68},"spots","Spots","queued",{"views":71,"likes":72,"saves":72,"shares":72,"completions":72,"opens":72,"skips":72,"depthSum":72},3,0,"2026-09-29T15:17:33.933Z","local"]