Note: The samples on this page are Java classes from the GroupDocs.Redaction for Java API. Use them from Node.js via Java by placing the classes on the JVM classpath, or by wrapping the same interfaces with java.newProxy.
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 the Java side of your project (or include the JAR on the classpath used by the Node–Java bridge):
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.
From Node.js, pass an instance of the connector to RedactorSettings when you open a document (after the Java class is available on the classpath):
Along with full featured Node.js via 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.