GitHunt
AB

ABCpdf-Team/PDF-Redaction

PDF redaction project to show how to select and redact text from a PDF. Text may be selected by search or by area and then may be outlined and deleted.

PDF Redaction

.NET Windows Forms project demonstrating how to find and redact text from a PDF.

This code sample shows how to:

  • Open and display a PDF document
  • Search for particular words on the page
  • Search for text in a particular font or style
  • Search for text in a particular area of the page
  • Highlight text which has been found
  • Redact or delete text that has been found
  • Redact or delete images in a particular area of the page

In the screenshot below you can see found words highlighted in blue, selected areas highlighed in green and selected text styles marked up in red. The buttons on the right allow you to select other element of the document and optionally to delete or redact them.

The ABCpdf Team

Languages

C#100.0%

Contributors

Other
Created April 7, 2021
Updated July 29, 2025
ABCpdf-Team/PDF-Redaction | GitHunt