RasterizationOptions class

RasterizationOptions class

Provides options for converting files into PDF.

The RasterizationOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance.

Methods

Method Description
add_advanced_option Registers an advanced rasterization option to apply.
add_advanced_option Registers an advanced rasterization option to apply.
add_advanced_option_advanced_rasterization_options

Properties

Property Description
compliance The PDF compliance level.
enabled 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.
has_advanced_options The indicator is True if advanced rasterization options are set.
page_count The number of pages to be converted into PDF.
page_index The index of the first page (0-based) to convert into PDF.

Example

from groupdocs.redaction import Redactor
from groupdocs.redaction.options import RasterizationOptions, PdfComplianceLevel

with Redactor("SomePresentation.pptx") as redactor:
    ro = RasterizationOptions()
    ro.page_index = 0          # first slide
    ro.page_count = 1
    ro.compliance = PdfComplianceLevel.PdfA1a
    redactor.save("PresentationFirstSlide.pdf", ro)

See Also