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....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
This article explains how to load a document from FTP storage with GroupDocs.Viewer within your Java applications....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
查找API的答案 GroupDocs.Total Product Family GroupDocs.Conversion Product Family GroupDocs.Annotation Product Family Group......Viewer Product Family GroupDocs.Comparison Product Family GroupDocs...
Note This feature is supported by version 19.5. or greater Note The code uses some of the objects defined in The Business Layer. GroupDocs.Assembly provides a great feature which is loading of HTML template documents referencing external resource files to be assembled and saved to non-HTML formats. Since version 19.5, when loading an HTML document from a file, its containing folder is used as a base URI to resolve external resource files’ relative URIs to absolute ones by default as shown in the following example....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
GroupDocs.Annotation is a cross-platform library that allows you to add, edit, and remove annotations to text or images using C# and Java. Documentation GroupDocs.Annotation for .NET Getting Started Start quickly with our getting started documentation Features Overview Supported Document Formats System Requirements Installation Developer Guide Articles and guidelines for developers Basic Usage Advanced Usage More GroupDocs.Annotation for Java Getting Started Start quickly with our getting started documentation Features Overview Supported Document Formats System Requirements Installation Developer Guide Articles and guidelines for developers Basic Usage Advanced Usage More ....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
This page explains how to convert a file to PDF, Word, Excel, PowerPoint, Email, JPG, PNG, TIFF, and many other formats with just a couple of lines of JavaScript code....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
This page explains how to convert a file to PDF, Word, Excel, PowerPoint, Email, JPG, PNG, TIFF, and many other formats with just a couple of lines of Java code....Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...
GroupDocs.Watermark for Java supports the following watermark types.
TextWatermark ImageWatermark Adding watermark to any supported document format using GroupDocs.Watermark consists of some easy steps. Following are the steps to add a watermark to a document.
Load the document Create and initialize watermark object Set watermark properties Add a watermark to the document Save the document For more details please refer to the following guides:...Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs...