Last active
April 29, 2022 04:06
-
-
Save GroupDocsGists/6d83e791388b6834a372dc90f4b455f6 to your computer and use it in GitHub Desktop.
Text Redaction Via Color Box Using Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Supported file formats: https://docs.groupdocs.com/redaction/java/supported-document-formats/ | |
final Redactor redactor = new Redactor("sample.pdf"); | |
try | |
{ | |
redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); | |
redactor.save(); | |
} | |
finally { redactor.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment