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:
finalRedactorredactor=newRedactor("sample.docx");try{// Here we can use document instance to perform redactions
redactor.apply(newDeleteAnnotationRedaction());redactor.save();}finally{redactor.close();}
sample.docx is the sample file used in this example. Click here to download it.