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....Editor Product Solution GroupDocs...
Document Automation APIs to enrich .NET and Java applications to view, edit, annotate, convert, compare, e-sign, parse, split, merge, redact, or classify documents of almost all the popular file formats....Editor for Java introduit des API...
Note In this article, we will use GroupDocs.Assembly to generate a Common Master-Detail report in Text Document format. Note The code uses some of the objects defined in The Business Layer. Common Master-Detail Image in Text Document Reporting Requirement As a report developer, you are required to represent the information of the managers and clients with the following key requirements:
Report must show managers’ picture and name. It must associate the managers with their clients....Editor Product Solution GroupDocs...
Note In this article, we will use GroupDocs.Assembly to generate a Multicolored Numbered List report in HTML Document format. Multicolored Numbered List in HTML Document Reporting Requirement As a report developer, you are required to represent the following key requirements:
Report must show the clients in numbered list. It must highlight the products. Report must be generated in the HTML Document. Adding Syntax to be evaluated by GroupDocs.Assembly Engine We provide support for the following clients: <<foreach [in getClients()]>>
<<[getName()]>>
<</foreach>> Download Multicolored Numbered List Template Please download the sample template we created in this article:...Editor Product Solution GroupDocs...
Note In this article, we will use GroupDocs.Assembly to generate a In-Table List report in Email Document format. In-Table List in Email Document Reporting Requirement As a report developer, you are required to represent the information of the managers with the following key requirements:
Report must be in .eml or .msg format. It must add email recipient, css and subject of the email. Report must show managers’ name. It must show the sum of contract prices against each manager....Editor Product Solution GroupDocs...
Note In this article, we will use GroupDocs.Assembly to generate a In-Paragraph List report in Text Document format. In-Paragraph List in Text Document Note This feature is supported by version 17.03 or greater Reporting Requirement As a report developer, you are required to describe about the services you are providing with the following key requirements:
A descriptive or informative line like “We provide support for the following products:”. Show all the products along with the above sentence....Editor Product Solution GroupDocs...