PdfConvertOptions class
Leave feedback
On this page
The options for conversion to PDF file type.
The PdfConvertOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new PdfConvertOptions instance. |
| 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. |
from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions
with Converter("input.docx") as converter:
converter.convert("output.pdf", PdfConvertOptions())
Task guides that use PdfConvertOptions:
- Quick Start Guide
- Convert a Document to Another Format
- Convert Files Within Document Containers
- Add a Watermark to Converted Document
- Load File From Local Disk
- Load Password-Protected File
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.