PdfConverterOptions class #
Provides options that control how a presentation is converted to PDF format.
Inheritance:PdfConverterOptions
→ ConverterOptions
The PdfConverterOptions type exposes the following members:
Constructors #
Constructor | Description |
---|---|
__init__ |
Initializes a new instance of the PdfConverterOptions class. |
Properties #
Property | Description |
---|---|
slides_view_options |
Gets or sets the mode in which slides are placed on the page when converting a presentation. Read-write ConverterOptions.slides_view_options . |
default_regular_font |
Returns or sets font used in case source font is not found. Read-write str. |
show_hidden_slides |
Specifies whether the generated document should include hidden slides or not. Default value is false . |
compliance_level |
Desired conformance level for generated PDF document. Read/write PdfComplianceLevel . |
use_flat_text_compression |
Specifies compression type to be used for all textual content in the document. Default value is true . |
embed_true_type_fonts_for_ascii |
Determines if Aspose.Slides will embed common fonts for ASCII (33..127 code range) text. Fonts for character codes greater than 127 are always embedded. Common fonts list includes PDF’s base 14 fonts and additional user specified fonts. Read/write bool. |
embed_full_fonts |
Determines if all characters of font should be embedded or only used subset. Read/write bool. |
rasterize_unsupported_font_styles |
Indicates whether text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts. Read/write bool. |
best_images_compression_ratio |
Indicates if the most effective compression (instead of the default one) for each image must be selected automatically. If set to bool.true, for every image in presentation the most appropriate compression algorithm will be chosen, what will lead to the smaller size of the resulting PDF document. Best image compression ratio selection is computationally expensive and takes an additional amount of RAM, and this option is bool.false by default. |
jpeg_quality |
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write int. |
save_metafiles_as_png |
True to convert all metafiles used in a presentation to the PNG images. Read/write bool. |
sufficient_resolution |
Returns or sets a value determining resolution of images inside PDF document.Property affects on file size, time of export and image quality.The default value is 96 . Read/write float. |
password |
Setting user password to protect the PDF document. Read/write str. |
include_ole_data |
True to convert all OLE data from the presentation to embedded files in the resulting PDF. Read/write bool. |
Examples #
The following example shows how to convert PowerPoint document to PDF/A-1b format in Notes/Comments view with embedded fonts and OLE data.
options = slidize.PdfConverterOptions()
options.compliance_level = slidize.PdfComplianceLevel.PDF_A1B
options.embed_full_fonts = True
options.include_ole_data = True
slides_view_options = slidize.NotesCommentsViewOptions()
slides_view_options.notes_position = slidize.NotesPosition.BOTTOM_TRUNCATED
slides_view_options.comments_position = slidize.CommentsPosition.RIGHT
options.slides_view_options = slides_view_options
slidize.PresentationToPdfConverter.process("pres.pptx", "pres.pdf", options)
See Also #
- class
ConverterOptions
- class
PdfConverterOptions
- module
slidize
- library
Slidize