The pre_rasterize flag indicating whether the file should be pre‑rasterized.
Example
fromgroupdocs.redactionimportRedactorfromgroupdocs.redaction.optionsimportLoadOptions,SaveOptionsfromgroupdocs.redaction.redactionsimportExactPhraseRedaction,ReplacementOptions# Specify the load options with the document passwordload_opt=LoadOptions("mypassword")# Define a redactionrepl_opt=ReplacementOptions("[personal]")ex_red=ExactPhraseRedaction("John Doe",repl_opt)# Open the password‑protected documentwithRedactor("./protected.docx",load_opt)asredactor:redactor.apply(ex_red)# Save the redacted documentsave_opt=SaveOptions()save_opt.add_suffix=Trueresult_path=redactor.save(save_opt)print(f"Document redacted successfully. Check output in {result_path}.")