pdfSweep example

Customizing redaction with pdfSweep

With pdfSweep it is also easy to customize your redaction process. This example shows you how to change the color of the redaction annotation to match the color of the text that was redacted, to provide a more aesthetically pleasing result.

We start by defining a class that extends CharacterRenderInfo, and keeps tracks of the color of each character.

Undefined
Is it possible to remove all text occurrences contained in a specified area of ​​a pdf document?
Is there any way to implement PDF redaction using iText? Working with the Acrobat SDK API I found that redactions also just seem to be annotations with the subtype "Redact".
These examples use the pdfSweep add-on and were written in answer to questions such as How to remove text from a PDF?