The following example demonstrates how to save the redacted Document, replacing an original file:
// Make a copy of sample file Files.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....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Redaction Product...
Learn how to perform date range search using C# to find specific Document data within a given range. Discover how to search Documents by date range in C# with ease....Merger Product Family GroupDocs.Redaction...especially when dealing with document management, reports, or logs...
This article explains how to extract text from DOC using Java. It also provides a code example for text extraction from DOC in Java without using extra software....Merger Product Family GroupDocs.Redaction... managing and processing documents programmatically has become...
This article explains how to handle specific exceptions when verifying Document electronic signatures with GroupDocs.Signature API....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Signature Product...
This article explains how to search for barcode electronic signatures within Document pages using GroupDocs.Signature for Python via .NET API...Merger Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Signature Product...
Learn how to efficiently remove metadata from RTF using Java with an example that shows how to delete metadata from RTF in Java without need of additional software....Merger Product Family GroupDocs.Redaction...( RTF ) is a commonly used document format that allows for text...
Follow this guide and learn how to convert Documents to PowerPoint presentations of PPT, PPTX formats with height, width, DPI, margins and other customizations using GroupDocs.Conversion for Java....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Conversion Product...
Render Documents to HTML, PDF, JPEG, or PNG with GroupDocs.Viewer for Python via .NET. Simple and powerful!...Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Viewer Product...
Let's learn how to convert ODT to HTML using C# without installing any extra software. Also, write code example to export ODT to HTML in C# using conversion library....Merger Product Family GroupDocs.Redaction...age, the need to convert documents from one format to another...