Privacy & Security

PDF Redaction vs Visual Blackout: How to Safely Hide Confidential Data

Why drawing black rectangles over sensitive text fails to delete underlying data, how PDF leaks happen, and how Qwertygen uses true in-browser page rasterization to permanently destroy hidden text while keeping unredacted vector pages intact.

Qwertygen Team
Qwertygen Team
•September 27, 2026•6 min read
Guide to PDF redaction and visual blackout masks showing text stream layers and image flattening techniques

Every year, major law firms, government departments, and multinational corporations accidentally publish unredacted classified intelligence, sensitive customer PII, and financial trade secrets. The culprit is almost always the same: confusing visual obscuration with cryptographic byte redaction.

1. The Black Box Illusion: What Goes Wrong

When an untrained user opens a PDF editor to hide confidential text (such as Social Security numbers, bank accounts, or trade secrets), their instinct is often to select a black rectangle tool or black highlighter and draw it across the text.

Visually on screen, the text appears hidden. However, in the underlying PDF specification:

  • The vector text characters, glyph offsets, and Unicode mappings remain completely intact in the content stream.
  • The black rectangle is simply drawn as an upper-layer graphic object (Z-index overlay).
  • Anyone can open the PDF, press Ctrl+A followed by Ctrl+C, and paste the underlying plaintext into Notepad!
Real Risk: Automated PDF indexing bots, OCR crawlers, and search engines read the raw document stream. If text was merely covered with a rectangle, search engines will index the confidential data for all to see.

2. The Anatomy of a High-Profile PDF Leak

Court filings and FOIA release documents frequently fall victim to improper redaction:

  1. Word Processor Highlights: In Microsoft Word, changing text background to black with black text still retains the font character string in the exported PDF.
  2. Ghost Annotations: Adding a sticky note or annotation box over text does not remove the underlying page text objects.
  3. Layer Transparency: Certain PDF viewers allow users to toggle layer visibility, immediately revealing covered objects.

3. Visual Masking vs True Text Destruction

There is a critical technical difference between visual masking and destructive redaction:

  1. Visual Masking: Drawing opaque vector rectangles directly over text only covers the visual display. In raw PDF streams, the text glyphs, font descriptors, and clipboard buffers remain fully extractable.
  2. True Page Rasterization (What Qwertygen Does): To guarantee permanent text destruction, Qwertygen renders redacted pages into high-resolution images (default 200 DPI). Blackout masks are burned directly into raw pixels, and the underlying text streams, font glyphs, and annotations are physically deleted from the file. Unredacted pages remain selectable vector text.
Rasterization Tradeoff: Redacted pages become non-selectable images to guarantee permanent confidentiality. Unredacted pages remain searchable, selectable vector text.

4. Don't Forget Metadata & Hidden Streams

Even if on-page text is redacted, documents often harbor sensitive information in hidden metadata fields:

  • Author name, username, and organization credentials.
  • Original file system directory paths (e.g. C:\Users\JohnDoe\Documents\Confidential_Acquisition.docx).
  • Software version strings and exact creation timestamps.
  • Print spooler and scanner serial numbers.

5. The Safe Workaround: Flattening Redacted PDFs with Qwertygen

With Qwertygen's built-in true redaction engine, pages containing redactions are automatically rasterized to images directly inside your browser memory, destroying underlying text streams without third-party servers. To process your documents:

  1. Apply Visual Masks: Open the PDF Redaction Tool or the full PDF Editor Studio. Draw your blackout boxes over sensitive text, account numbers, or signatures, and download the masked PDF.
  2. Convert to Images: Open our PDF to JPG Tool and convert the masked PDF. We recommend selecting at least 200 DPI (or 300 DPI for high legal clarity). Note that multi-page PDFs download as a ZIP archive; you can unpack this archive directly in your browser using our Archive Extractor Tool. This renders each page into an image canvas, permanently baking the blackout boxes into raw pixels and eradicating the underlying text layer.
  3. Reassemble to PDF: Open our JPG to PDF Tool to merge the flattened images back into a clean PDF document.
  4. Verify Text Destruction: Open the finished PDF in any viewer, press Ctrl+A (or Cmd+A) and try copying text. You will find that no underlying sensitive text can be highlighted, selected, or extracted.
Qwertygen Team

Written by Qwertygen Team

Engineering & Editorial Team at Qwertygen. Passionate about client-side document processing, data privacy invariants, and high-performance browser tooling.