Redactor Constructor (Stream)
Initializes a new instance of Redactor class using stream.

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 21.9
Syntax
public Redactor(
	Stream document
)

Parameters

document
Type: System.IOStream
Source stream of the document
Examples
The following example demonstrates how to open a document from stream.
C#
using (Stream stream = File.Open(@"C:\\sample.pdf", FileMode.Open, FileAccess.ReadWrite))
{
    using (Redactor redactor = new Redactor(stream))
    {
        // Here we can use document instance to perform redactions
    }
}
See Also