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....Classification Product Solution Purchase...
Note This feature is supported by version 20.3 or greater Note The code uses some of the objects defined in The Business Layer. Inserting Hyperlinks Dynamically Dynamic insertion of bookmarks for Word Processing documents and emails with HTML and RTF bodies You can insert bookmarks to your reports dynamically using bookmark tags. Syntax of a bookmark tag is defined as follows.
<> bookmarked_content <> Here, bookmark_expression defines the name of a bookmark to be inserted during run-time....Classification Product Solution Purchase...
Note This business case has been conceived for the demonstration purpose and serves well for a typical shopping store. There may be simpler or complex scenarios in real life businesses. Business Case There are many customers of the shopping store. The store offers multiple products. A customer may place multiple orders. An order may have many products. The data may or may not be stored in a database system. Reporting Requirements A report based on some criteria is to be generated....Classification Product Solution Purchase...
Development Environment Operating Systems GroupDocs.Search for Java can be executed on any Operating System with Java JDK installed.
Windows Desktops and Servers Linux Mac OS Supported Runtime **GroupDocs.**Search for Java supports Java run-time version 6 (1.6) and above.
Development Environments NetBeans IntelliJ IDEA Eclipse Installation from GroupDocs Artifactory using Maven GroupDocs hosts all Java APIs on GroupDocs Artifactory. You can easily use GroupDocs.Search for Java API directly in your Maven projects with simple configurations....Classification Product Solution Purchase...
GroupDocs.Conversion for Python via .NET is a document conversion API that enables easy conversion of popular file formats, including DOCX, XLSX, PPTX, PDF, CAD drawings, and many more....Classification Product Solution Purchase...
Learn more about how to compare multiple Word documents or PowerPoint presentations simultaneously with GroupDocs.Comparison for Java....Classification Product Solution Purchase...
This article explains how to set document password after files comparison within your Java applications using GroupDocs.Comparison for Java....Classification Product Solution Purchase...
GroupDocs.Comparison for Java provides free technical support available to all users. Please report your question, issue, or feature request using GroupDocs Free Support Forum....Classification Product Solution Purchase...