The enabled flag indicates whether all pages in the document are converted to images and placed in a single PDF file. True by default; set to False to avoid rasterization.
The zero‑based index of the first page to convert into PDF.
Example
fromgroupdocs.redactionimportRedactorfromgroupdocs.redaction.optionsimportRasterizationOptions# Load a document and save it as a rasterized PDFwithRedactor("./sample.docx")asredactor:ro=RasterizationOptions()ro.enabled=True# convert pages to images and embed in PDFwithopen("./output.pdf","wb")asout_stream:redactor.save(out_stream,ro)