The following example demonstrates how to save the document as a rasterized PDF file:
final Redactor redactor = new Redactor(Constants.SAMPLE_DOCX); try { // Here we can use document instance to perform redactions redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]"))); SaveOptions tmp0 = new SaveOptions(); tmp0.setAddSuffix(false); tmp0.setRasterizeToPDF(true); // Saving as rasterized PDF with no suffix in file name redactor.save(tmp0); } finally { redactor.close(); }...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article shows that how to get the list of all supported file formats of GroupDocs.Redaction by using Java....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Overview of GroupDocs.Redaction for Node.js via Java — redact documents on-premise through the Java API bridged into Node.js....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
The simplest way to save the document is it provide no parameters to Save method. In this case the document will be rasterized to PDF and will have the same name as the original one except its extension (.PDF). The PDF file will be overwritten.
The following example demonstrates usage of Save() method with default options.
const redaction = require('@groupdocs/groupdocs.redaction'); const redactor = new redaction.Redactor('sample.docx'); try { // Here we can use document instance to perform redactions redactor....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Load password-protected file In order to open password-protected documents, you have to pass your password to LoadOptions class constructor or assign it to its Password property of an instance of LoadOptions class:
const redaction = require('@groupdocs/groupdocs.redaction'); const loadOptions = new redaction.LoadOptions('mypassword'); const redactor = new redaction.Redactor('protected_sample.docx', loadOptions); try { // Here we can use document instance to perform redactions redactor.apply(new redaction.ExactPhraseRedaction('John Doe', new redaction.ReplacementOptions('[personal]'))); redactor.save(); } finally { redactor.close(); }...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This section presents various real-world use cases for GroupDocs.Parser for Java...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Explains GroupDocs.Markdown for Java converter features and shows how to convert PDF, Word, Excel, Epub, Text inside your Java applications...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Learn how to extract hyperlinks from documents using GroupDocs.Parser for Python via .NET...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...