Follow this guide and learn how to convert documents to image with height, width, resolution, brightness and other customizations using Groupdocs.Conversion for Java....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
The following example demonstrates how to Save the redacted document, replacing an original file:
const redaction = require('@Groupdocs/Groupdocs.redaction'); const java = require('java'); const fs = require('fs'); const Color = java.import('java.awt.Color'); // Make a copy of sample file fs.copyFileSync('Sample.docx', 'OverwrittenSample.docx'); const redactor = new redaction.Redactor('OverwrittenSample.docx'); try { const result = redactor.apply(new redaction.ExactPhraseRedaction( 'John Doe', new redaction.ReplacementOptions(Color.RED))); if (result.getStatus() !== redaction.RedactionStatus.Failed) { const Options = new redaction.SaveOptions(); Options.setAddSuffix(false); Options.setRasterizeToPDF(false); // Save the document in original format overwriting original file redactor....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This topic describes how to use the Groupdocs.Viewer Java API to specify various Options for rendering CAD files to HTML, PDF, PNG, and JPEG....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
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) { SaveOptionsOptions = new SaveOptions(); Options.setAddSuffix(false); Options.setRasterizeToPDF(false); // Save the document in original format overwriting original file redactor.Save(Options); } } finally { redactor....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
The listed articles below explain how to Save images to the file system during document conversion....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
This article explains how to provide advanced Options when updating Text electronic signatures with Groupdocs.Signature API....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
Edit Excel files (XLS, XLSX, ODS) with your Java application. Examples to edit spreadsheets using spreadsheet and document editing Java API....Spreadsheets and Automation # GroupDocs.Editor provides Java API for...developers to load, edit, and save various document formats using...
This article explains how to provide advanced Options when updating Text electronic signatures with Groupdocs.Signature API....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...
You might need to Save a document to any custom file at any location on the local disc or a even a Stream.
The following example demonstrates how to Save a document to any location.
final Redactor redactor = new Redactor("Sample.docx"); try { // Here we can use document instance to perform redactions RedactorChangeLog result = redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { // Save the document to a custom location and convert its pages to images final FileOutputStream fileStream = new FileOutputStream("C:\\\\Temp\\\\sample_output_file....Navigation Products GroupDocs.Total Product Family GroupDocs.Conversion...Solution GroupDocs.Viewer Product Solution GroupDocs.Markdown...