PdfConvertOptions class

PdfConvertOptions class

The options for conversion to PDF file type.

The PdfConvertOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new PdfConvertOptions instance.

Properties

Property Description
dpi The desired page DPI after conversion. The default resolution is 96 dpi.
embed_full_fonts The property determines whether the full font file is embedded into the PDF instead of a subset.
fallback_page_size The fallback page size.
format The desired file type the input document should be converted to.
margin_settings The margin settings applied during PDF conversion.
orientation_settings The orientation settings.
page_number The page number to start conversion from.
pages The list of page indexes to be converted; specify to convert specific pages.
pages_count The number of pages to convert starting from page_number.
password The password used to protect the converted document.
pdf_options The PDF specific convert options.
resize_mode The resize mode specifies how content should be scaled when page size is changed. Default is AlignTopLeft (no scaling).
rotate The page rotation.
size_settings The page size settings used during PDF conversion.
watermark The watermark specific options.

Example

from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions

with Converter("input.docx") as converter:
    converter.convert("output.pdf", PdfConvertOptions())

Guides

Task guides that use PdfConvertOptions:

See Also