Redactor Constructor (Stream, LoadOptions, RedactorSettings)
Initializes a new instance of Redactor class for a password-protected document using stream and settings.

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 21.3
Syntax
public Redactor(
	Stream document,
	LoadOptions loadOptions,
	RedactorSettings settings
)

Parameters

document
Type: System.IOStream
Source input stream.
loadOptions
Type: GroupDocs.Redaction.OptionsLoadOptions
Options, including password.
settings
Type: GroupDocs.Redaction.OptionsRedactorSettings
Default settings for redaction process.
Examples

The following example demonstrates how to open a password-protected documents using LoadOptions.

C#
LoadOptions loadOptions = new LoadOptions("mypassword");
using (Redactor redactor = new Redactor(@"C:\sample.pdf", loadOptions))
{
    // Here we can use document instance to perform redactions
}
See Also