Load from local disc GroupDocs.Redaction.Redactor class is a main class in Redaction API, providing functionality to open a document. When document is located on the local disk, you can pass its path to *Redactor *class constructor.
The following example demonstrates how to open a document from local disc:
final Redactor redactor = new Redactor("sample.docx"); try { // Here we can use document instance to perform redactions redactor.apply(new DeleteAnnotationRedaction()); redactor.save(); } finally { redactor....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Load from Stream As an alternative to a local file, Redactor can open a document from stream.
The following example demonstrates how to load and redact a document using Stream:
final FileInputStream stream = new FileInputStream("sample.docx"); try { final Redactor redactor = new Redactor(stream); try { // Here we can use document instance to make redactions redactor.apply(new DeleteAnnotationRedaction()); redactor.save(); } finally { redactor.close(); } } finally { stream.close(); }...Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article explains how to list and print file types supported by GroupDocs.Viewer for Java...Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Learn how to generate only the summary page in the comparison result using GroupDocs.Comparison for Python via .NET....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Follow this guide and learn how to remove page from PDF or Word document, delete worksheet from Excel file or remove slides from PowerPoint presentations with GroupDocs.Merger for .NET API....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article explains how to add password for PDF document with permissions using GroupDocs.Merger for .NET....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article explains how to load password-protected PDF, Word, Excel, PowerPoint documents when using GroupDocs.Merger for .NET....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Learn how to compare variable, built-in, and custom document properties using GroupDocs.Comparison for Python via .NET....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Learn how to set the author name for revisions in the result using GroupDocs.Comparison for Python via .NET....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article explains how to load from stream while using GroupDocs. Watermarks Java API....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...