Initializes a new instance with default settings: rasterize to PDF is False and add suffix is False.
def__init__(self):...
Example
fromgroupdocs.redactionimportRedactorfromgroupdocs.redaction.optionsimportSaveOptionswithRedactor("sample.docx")asredactor:# Apply redactions heresave_options=SaveOptions()# defaults: rasterize_to_pdf=False, add_suffix=Falseresult_path=redactor.save(save_options)print(f"Saved to {result_path}")
init
Initializes a new SaveOptions instance with given parameters.
def__init__(self,rasterize_to_pdf,suffix):...
Parameter
Type
Description
rasterize_to_pdf
bool
True, if all pages in the document need to be converted to images and put in a single PDF file.
suffix
str
Text added to the end of the file name; if not empty also sets add_suffix to True.
Example
fromgroupdocs.redaction.optionsimportSaveOptions# Save with pages rasterized to a single PDF and add a suffix to the filenameoptions=SaveOptions(rasterize_to_pdf=True,suffix="redacted")