🍋
Menu
PDF

Redaction

PDF Redaction

The permanent removal of sensitive content from a PDF, replacing it with black bars or blank space.

Technical Detail

Redaction goes beyond visual concealment — it permanently removes the underlying text, images, and metadata from the PDF's content streams. Simple black rectangles drawn over text do not constitute proper redaction because the original data remains selectable and searchable. Professional redaction tools replace content with null bytes, update the cross-reference table, and optionally re-encrypt the document to prevent forensic recovery.

Example

```javascript
// Redaction: PDF manipulation example
import { PDFDocument } from 'pdf-lib';

const pdfDoc = await PDFDocument.load(fileBytes);
const pages = pdfDoc.getPages();
console.log(`Pages: ${pages.length}`);
```

Related Formats

Related Tools

Related Terms