PdfOptions
PdfOptions class
Provides options that control how a presentation is saved in Pdf format.
PdfOptions
Name | Description |
---|
PdfOptions() | Default function. |
Returns:
PdfOptions
getAccessPermissions
Name | Description |
---|
getAccessPermissions () | Contains a set of flags specifying which access permissions should be granted when the document is opened with user access. See PdfAccessPermissions. |
Returns:
int
getAdditionalCommonFontFamilies
Name | Description |
---|
getAdditionalCommonFontFamilies () | Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common. Read/write String[]. |
Returns:
String
getApplyImageTransparent
Name | Description |
---|
getApplyImageTransparent () | Applies the specified transparent color to an image if true. |
Returns:
boolean
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 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 false by default. Default is false. |
Returns:
boolean
getCompliance
Name | Description |
---|
getCompliance () | Desired conformance level for generated PDF document. Read/write PdfCompliance. Default is PdfCompliance#Pdf17. |
Returns:
int
getDrawSlidesFrame
Name | Description |
---|
getDrawSlidesFrame () | True to draw black frame around each slide. Read/write boolean. Default is false. |
Returns:
boolean
getEmbedFullFonts
Name | Description |
---|
getEmbedFullFonts () | Determines if all characters of font should be embedded or only used subset. Read/write boolean. Default is false. |
Returns:
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 is true. |
Returns:
boolean
getImageTransparentColor
Name | Description |
---|
getImageTransparentColor () | Gets or sets the image transparent color. Value: The color of the image transparent. |
Returns:
Color
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. |
Returns:
boolean
getInkOptions
Name | Description |
---|
getInkOptions () | Provides options that control the look of Ink objects in exported document. Read-only IInkOptions |
Returns:
InkOptions
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. |
Returns:
byte
getPassword
Name | Description |
---|
getPassword () | Setting user password to protect the PDF document. Read/write String. |
Returns:
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 is false. |
Returns:
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. |
Returns:
boolean
getShowHiddenSlides
Name | Description |
---|
getShowHiddenSlides () | Specifies whether the generated document should include hidden slides or not. Default is false. |
Returns:
boolean
getSlidesLayoutOptions
Name | Description |
---|
getSlidesLayoutOptions () | Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions. |
Returns:
NotesCommentsLayoutingOptions, HandoutLayoutingOptions
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. |
Returns:
float
getTextCompression
Name | Description |
---|
getTextCompression () | Specifies compression type to be used for all textual content in the document. Read/write PdfTextCompression. Default is PdfTextCompression#Flate. |
Returns:
int
setAccessPermissions
Name | Description |
---|
setAccessPermissions (int) | Contains a set of flags specifying which access permissions should be granted when the document is opened with user access. See PdfAccessPermissions. |
setAdditionalCommonFontFamilies
Name | Description |
---|
setAdditionalCommonFontFamilies (java.lang.String[]) | Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common. Read/write String[]. |
setApplyImageTransparent
Name | Description |
---|
setApplyImageTransparent (boolean) | Applies the specified transparent color to an image if true. |
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 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 false by default. Default is false. |
setCompliance
Name | Description |
---|
setCompliance (int) | Desired conformance level for generated PDF document. Read/write PdfCompliance. Default is PdfCompliance#Pdf17. |
setDrawSlidesFrame
Name | Description |
---|
setDrawSlidesFrame (boolean) | True to draw black frame around each slide. Read/write boolean. Default is false. |
setEmbedFullFonts
Name | Description |
---|
setEmbedFullFonts (boolean) | Determines if all characters of font should be embedded or only used subset. Read/write boolean. Default 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 is true. |
setImageTransparentColor
Name | Description |
---|
setImageTransparentColor (Color) | Gets or sets the image transparent color. Value: The color of the image transparent. |
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 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 is false. |
setSlidesLayoutOptions
Name | Description |
---|
setSlidesLayoutOptions (NotesCommentsLayoutingOptions) | Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions. |
setSlidesLayoutOptions
Name | Description |
---|
setSlidesLayoutOptions (HandoutLayoutingOptions) | Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions. |
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. |
setTextCompression
Name | Description |
---|
setTextCompression (int) | Specifies compression type to be used for all textual content in the document. Read/write PdfTextCompression. Default is PdfTextCompression#Flate. |