The following example demonstrates how to Save the redacted document, replacing an original file:
const redaction = require('@Groupdocs/Groupdocs.redaction'); const java = require('java'); const fs = require('fs'); const Color = java.import('java.awt.Color'); // Make a copy of sample file fs.copyFileSync('Sample.docx', 'OverwrittenSample.docx'); const redactor = new redaction.Redactor('OverwrittenSample.docx'); try { const result = redactor.apply(new redaction.ExactPhraseRedaction( 'John Doe', new redaction.ReplacementOptions(Color.RED))); if (result.getStatus() !== redaction.RedactionStatus.Failed) { const Options = new redaction.SaveOptions(); Options.setAddSuffix(false); Options.setRasterizeToPDF(false); // Save the document in original format overwriting original file redactor....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article explains how to provide advanced Options when updating Barcode electronic signatures with Groupdocs.Signature API....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
The listed articles below explain how to embed images as Base64 strings directly in the Markdown....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article demonstrates that how to Save a document to any custom file at any location on the local disc or a even a Stream...Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
Edit Excel files (XLS, XLSX, ODS) with your Java application. Examples to edit spreadsheets using spreadsheet and document editing Java API....Spreadsheets and Automation # GroupDocs.Editor provides Java API for...developers to load, edit, and save various document formats using...
The listed articles below explain how to Saves images to the file system during document conversion....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article explains how to provide advanced Options when updating QR-code electronic signatures with Groupdocs.Signature API....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article demonstrates that how to Save a document to any custom file at any location on the local disc or a even a Stream...Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article explains how to provide advanced Options when updating Text electronic signatures with Groupdocs.Signature API....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...