PDF Redaction
Find and remove content in PDF documents with free cross-platform Apps and APIs
How to Redact PDF File
In order to redact PDF file, we’ll use Aspose.PDF API which is a feature-rich, powerful and easy to use document manipulation API for any platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Redact PDF documents
You need Aspose.PDF library to try the code in your environment.
- Load the PDF with an instance of Document.
- Create TextFragmentAbsorber object with search terms as argument.
- Set Search Options.
- Loop through each fragment collect to redact.
- Save PDF file.