PdfOptions class

PdfOptions class

Provides options that control how a presentation is saved in Pdf format.

Inheritance:PdfOptionsSaveOptions

The PdfOptions type exposes the following members:

Constructors

ConstructorDescription
__init__Default constructor.

Properties

PropertyDescription
warning_callbackReturns of sets an object which receives warnings and decides whether loading process will continue or will be aborted.
Read/write IWarningCallback.
progress_callbackRepresents a callback object for saving progress updates in percentage.
See IProgressCallback.
default_regular_fontReturns or sets font used in case source font is not found.
Read-write str.
gradient_styleReturns or sets the visual style of the gradient.
Read/write GradientStyle.
slides_layout_optionsGets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
ink_optionsProvides options that control the look of Ink objects in exported document.
Read-only IInkOptions
show_hidden_slidesSpecifies whether the generated document should include hidden slides or not.
Default is false.
text_compressionSpecifies compression type to be used for all textual content in the document.
Read/write PdfTextCompression.
best_images_compression_ratioIndicates 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.
embed_true_type_fonts_for_asciiDetermines 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.
additional_common_font_familiesReturns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
Read/write str[].
embed_full_fontsDetermines if all characters of font should be embedded or only used subset.
Read/write bool.
rasterize_unsupported_font_stylesIndicates 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.
jpeg_qualityReturns or sets a value determining the quality of the JPEG images inside PDF document.
Read/write int.
complianceDesired conformance level for generated PDF document.
Read/write PdfCompliance.
passwordSetting user password to protect the PDF document.
Read/write str.
access_permissionsContains a set of flags specifying which access permissions should be granted when the document is opened
with user access. See PdfAccessPermissions.
save_metafiles_as_pngTrue to convert all metafiles used in a presentation to the PNG images.
Read/write bool.
sufficient_resolutionReturns 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.
draw_slides_frameTrue to draw black frame around each slide.
Read/write bool.
image_transparent_colorGets or sets the image transparent color.
apply_image_transparentApplies the specified transparent color to an image if true.
include_ole_dataTrue to convert all OLE data from the presentation to embedded files in the resulting PDF.
Read/write bool.

See Also