PdfConverterOptions class
#
Provides options that control how a presentation is converted to PDF format.
PdfConverterOptions
#
| Name |
Description |
| PdfConverterOptions() |
Initializes a new instance of the PdfConverterOptions class. |
Result:
PdfConverterOptions
getBestImagesCompressionRatio
#
| Name |
Description |
| getBestImagesCompressionRatio () |
Indicates if the most effective compression (instead of the default one) for each image must be selected automatically. If set to boolean.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 boolean.false by default. Default value is false. |
Result:
boolean
getComplianceLevel
#
| Name |
Description |
| getComplianceLevel () |
Desired conformance level for generated PDF document. Read/write PdfComplianceLevel. Default value is PdfComplianceLevel#Pdf17. |
Result:
int
getDefaultRegularFont
#
| Name |
Description |
| getDefaultRegularFont () |
Returns or sets font used in case source font is not found. Read-write String. |
Result:
String
getEmbedFullFonts
#
| Name |
Description |
| getEmbedFullFonts () |
Determines if all characters of font should be embedded or only used subset. Read/write boolean. Default value is false. |
Result:
boolean
getEmbedTrueTypeFontsForASCII
#
| Name |
Description |
| getEmbedTrueTypeFontsForASCII () |
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 boolean. Default value is true. |
Result:
boolean
getIncludeOleData
#
| Name |
Description |
| getIncludeOleData () |
True to convert all OLE data from the presentation to embedded files in the resulting PDF. Read/write boolean. Default is false. |
Result:
boolean
getJpegQuality
#
| Name |
Description |
| getJpegQuality () |
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write byte. Has effect only when a document contains JPEG images. Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression. The default value is 100. |
Result:
byte
getPassword
#
| Name |
Description |
| getPassword () |
Setting user password to protect the PDF document. Read/write String. |
Result:
String
getRasterizeUnsupportedFontStyles
#
| Name |
Description |
| getRasterizeUnsupportedFontStyles () |
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 boolean. Default value is false. |
Result:
boolean
| Name |
Description |
| getSaveMetafilesAsPng () |
True to convert all metafiles used in a presentation to the PNG images. Read/write boolean. Default is true. Pdf document can contain vector graphics and raster images. If SaveMetafilesAsPng is set to true then source Metafile image is converted to Png format and saved to Pdf as a raster image. If SaveMetafilesAsPng is set to false then source Metafile is converted to Pdf vector graphics. Each approach has advantages and disadvantages. For example, if Metafile is converted to PNG, then some quality loss is possible during resulting document scaling. If Metafile is converted to Pdf vector graphics, then performance issues in Pdf viewing tool are possible. |
Result:
boolean
getShowHiddenSlides
#
| Name |
Description |
| getShowHiddenSlides () |
Specifies whether the generated document should include hidden slides or not. Default value is false. |
Result:
boolean
getSlidesViewOptions
#
| Name |
Description |
| getSlidesViewOptions () |
Gets or sets the mode in which slides are placed on the page when converting a presentation. Read-write SlidesViewOptions. |
Result:
SlidesViewOptions
getSufficientResolution
#
| Name |
Description |
| getSufficientResolution () |
Returns or sets a value determining resolution of images inside PDF document. Read/write float. Value: Effect of this parameter depends on few factors. Algorithm tries to get best output image size according to the property value, source image size and image frame size. Using of similar property values may give the same result. Recommended to use step 16 or 32 to get visible effect. Property affects on file size, time of export and image quality. The default value is 96. |
Result:
float
getUseFlatTextCompression
#
| Name |
Description |
| getUseFlatTextCompression () |
Specifies compression type to be used for all textual content in the document. Default value is true. |
Result:
boolean
setBestImagesCompressionRatio
#
| Name |
Description |
| setBestImagesCompressionRatio (boolean) |
Indicates if the most effective compression (instead of the default one) for each image must be selected automatically. If set to boolean.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 boolean.false by default. Default value is false. |
setComplianceLevel
#
| Name |
Description |
| setComplianceLevel (int) |
Desired conformance level for generated PDF document. Read/write PdfComplianceLevel. Default value is PdfComplianceLevel#Pdf17. |
setDefaultRegularFont
#
| Name |
Description |
| setDefaultRegularFont (String) |
Returns or sets font used in case source font is not found. Read-write String. |
setEmbedFullFonts
#
| Name |
Description |
| setEmbedFullFonts (boolean) |
Determines if all characters of font should be embedded or only used subset. Read/write boolean. Default value is false. |
setEmbedTrueTypeFontsForASCII
#
| Name |
Description |
| setEmbedTrueTypeFontsForASCII (boolean) |
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 boolean. Default value is true. |
setIncludeOleData
#
| Name |
Description |
| setIncludeOleData (boolean) |
True to convert all OLE data from the presentation to embedded files in the resulting PDF. Read/write boolean. Default is false. |
setJpegQuality
#
| Name |
Description |
| setJpegQuality (byte) |
Returns or sets a value determining the quality of the JPEG images inside PDF document. Read/write byte. Has effect only when a document contains JPEG images. Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression. The default value is 100. |
setPassword
#
| Name |
Description |
| setPassword (String) |
Setting user password to protect the PDF document. Read/write String. |
setRasterizeUnsupportedFontStyles
#
| Name |
Description |
| setRasterizeUnsupportedFontStyles (boolean) |
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 boolean. Default value is false. |
| Name |
Description |
| setSaveMetafilesAsPng (boolean) |
True to convert all metafiles used in a presentation to the PNG images. Read/write boolean. Default is true. Pdf document can contain vector graphics and raster images. If SaveMetafilesAsPng is set to true then source Metafile image is converted to Png format and saved to Pdf as a raster image. If SaveMetafilesAsPng is set to false then source Metafile is converted to Pdf vector graphics. Each approach has advantages and disadvantages. For example, if Metafile is converted to PNG, then some quality loss is possible during resulting document scaling. If Metafile is converted to Pdf vector graphics, then performance issues in Pdf viewing tool are possible. |
setShowHiddenSlides
#
| Name |
Description |
| setShowHiddenSlides (boolean) |
Specifies whether the generated document should include hidden slides or not. Default value is false. |
setSlidesViewOptions
#
| Name |
Description |
| setSlidesViewOptions (SlidesViewOptions) |
Gets or sets the mode in which slides are placed on the page when converting a presentation. Read-write SlidesViewOptions. |
setSufficientResolution
#
| Name |
Description |
| setSufficientResolution (float) |
Returns or sets a value determining resolution of images inside PDF document. Read/write float. Value: Effect of this parameter depends on few factors. Algorithm tries to get best output image size according to the property value, source image size and image frame size. Using of similar property values may give the same result. Recommended to use step 16 or 32 to get visible effect. Property affects on file size, time of export and image quality. The default value is 96. |
setUseFlatTextCompression
#
| Name |
Description |
| setUseFlatTextCompression (boolean) |
Specifies compression type to be used for all textual content in the document. Default value is true. |