This implementation is based on Aspose.OCR for Java on-premise API. Although it requires a valid license file, you can always request a temporary license for a month to evaluate.
Add the Aspose Maven repository and the aspose-ocr dependency to your project:
First, identify rectangle areas of text using DetectRectangles() with AreasType.LINES. With this option you get a rectangle for every line of text. For word-level redaction, split each line into word fragments with their own rectangles before creating TextFragment instances.
Pass the connector to RedactorSettings when you open a document:
Along with full featured Java library we provide simple, but powerful free Apps.
You are welcome to perform redactions for various document formats like PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more with our free online Free Online Document Redaction App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.