Redact PDF via C++
PDF document sensitive redaction information. Use Aspose.PDF for C++ to modify PDF documents programmatically
How to Redact PDF File Using C++ Library
In order to redact PDF file, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful and easy to use document manipulation API for cpp 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 via C++
You need Aspose.PDF for C++ 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.