The following example demonstrates how to save the redacted document, replacing an original File:
// Make a copy of sample FileFiles.copy(new File("Sample.docx").toPath(), new File("OverwrittenSample.docx").toPath(), StandardCopyOption.REPLACE_EXISTING); // Apply redaction final Redactor redactor = new Redactor("OverwrittenSample.docx"); try { RedactorChangeLog result = redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { SaveOptions options = new SaveOptions(); options.setAddSuffix(false); options.setRasterizeToPDF(false); // Save the document in original format overwriting original File redactor.save(options); } } finally { redactor....Editor Product Solution GroupDocs...overwriting original file Save overwriting original file Leave feedback...
Learn how to load a password-protected File by using .NET redaction API...Editor Product Solution GroupDocs...password-protected file Load password-protected file Leave feedback...
The listed articles below explain how to saves images to the File system during document conversion....Editor Product Solution GroupDocs...strategy / Save image as file Save image as file Leave feedback Use...
This article explains that how to detect encoding of a text File automatically....Editor Product Solution GroupDocs...Indexing / Text file encoding detection Text file encoding detection...
This article explains how to detect document File type, size and calculate pages count with GroupDocs.Comparison....Editor Product Solution GroupDocs...Comparison basic / Get file info Get file info Leave feedback On...
This topic describes how to optimize spreadsheets in a PDF File using the GroupDocs.Viewer Java API....Editor Product Solution GroupDocs...output PDF file / Optimize spreadsheets in a PDF file Optimize...
The following article indicates the File formats that GroupDocs.Comparison can work with....Editor Product Solution GroupDocs...Started / Supported File Formats Supported File Formats Leave feedback...
Key features of every API bundled in GroupDocs.Total for Java, with runnable Java examples you can copy, plus the input and output Files for each one....Editor Product Solution GroupDocs...comes with the sample file it reads and the file it produces. These...
The following article indicates the File formats that GroupDocs.Comparison can work with....Editor Product Solution GroupDocs...Started / Supported File Formats Supported File Formats Leave feedback...