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(); }...Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
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....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
GroupDocs.Parser provides API to extract a text from image files and non-text PDFs documents. The following articles describe how to use API to extract data and integrate any paid or free OCR solution to GroupDocs.Parser....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Quick Start section about main features of GroupDocs.Parser API, describes how to extract text, images, and metadata from documents with just a couple lines of code....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
Discover ways to view and edit PNG metadata. Either edit PNG metadata online or do it programmatically using C# & Java....effortlessly using the GroupDocs.Metadata App . Go to the Online...
Excellent file viewer component that empowers your C#, Java, Node.js, and Python applications with document viewing features across 170+ supported file formats....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
This article explains how to load a document from Amazon S3 Storage with GroupDocs.Viewer within your Java applications....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...
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.
const redaction = require('@groupdocs/groupdocs.redaction'); const java = require('java'); const Color = java.import('java.awt.Color'); const FileOutputStream = java.import('java.io.FileOutputStream'); const redactor = new redaction.Redactor('Sample.docx'); try { const result = redactor.apply(new redaction.ExactPhraseRedaction( 'John Doe', new redaction.ReplacementOptions(Color.RED))); if (result.getStatus() !== redaction....Watermark Product Solution GroupDocs.Metadata Product Solution GroupDocs...