Initializes a new Redactor instance using a document stream.
def__init__(self,document):...
Parameter
Type
Description
document
io.RawIOBase
Source stream of the document.
Example
fromgroupdocs.redactionimportRedactorwithopen("./sample.docx","rb")asstream:# Load the document from the streamwithRedactor(stream)asredactor:# Perform redaction operations herepass
init
Initializes a new Redactor instance for a password-protected document using its path.
def__init__(self,file_path,load_options):...
Parameter
Type
Description
file_path
str
Path to file.
load_options
LoadOptions
Options, including password.
init
Initializes a new instance of Redactor for a password‑protected document using its path and settings.