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:
const redaction = require('@groupdocs/groupdocs.redaction'); const redactor = new redaction.Redactor('sample.docx'); try { // Here we can use document instance to perform redactions redactor....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
This article explains how to list and print file types supported by GroupDocs.Viewer for Java...Close Navigation Products GroupDocs.Total Product Family GroupDocs...
Learn how to protect, inspect, and manage document passwords for PDF, Word, Excel, and PowerPoint files using GroupDocs.Merger for Python via .NET....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
Learn how to set the author name for revisions in the result using GroupDocs.Comparison for Python via .NET....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
Learn how to compare variable, built-in, and custom document properties using GroupDocs.Comparison for Python via .NET....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
Simple IAB-2 text classification Call Classify method with a text as the first parameter to perform classification. Default taxonomy (IAB-2) and bestClassesCount (1) will be used.
var response = classifier.Classify("Medicine is an important part of our lifes"); Console.WriteLine(response.BestClassName, response.BestClassProbability); Raw text classification with Documents taxonomy and 2 best classes to return Taxonomy, bestClassesCount and precisionRecallBalance could also be specified:
var response = classifier.Classify("Medicine is an important part of our lifes", 2, Taxonomy....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
This article explains how to remove password for PDF, Word, Excel, PowerPoint documents by using GroupDocs.Merger for .NET....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
This article explains how to load from stream while using GroupDocs. Watermarks Java API....Close Navigation Products GroupDocs.Total Product Family GroupDocs...
This article explains how to load a document from Amazon S3 Storage with GroupDocs.Viewer within your Java applications....Close Navigation Products GroupDocs.Total Product Family 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....Close Navigation Products GroupDocs.Total Product Family GroupDocs...