PdfExportOptions Class
Specifies PDF export settings for presentations.
Declaration
public class PdfExportOptions extends JavaObject
Remarks
Create a PdfExportOptions object and pass it to the Presentation.exportToPdf() method to customize PDF output.
You can customize the following PDF export settings:
- Security and encryption
- Digital signatures
- Image optimization
- Attachments
- Document properties (metadata)
Refer to the following help topic for additional information: Export PowerPoint Presentations to PDF.
Inherited Members
Inheritance
PdfExportOptions()
Initializes a new instance of the PdfExportOptions class.
Declaration
public PdfExportOptions()
Methods
getAttachments() Method
Returns files to attach to the exported PDF.
Declaration
public Collection<Attachment> getAttachments()
Returns
| Type | Description |
|---|---|
| java.util.Collection<Attachment> | A collection of files to attach to the exported PDF. |
getConvertImagesToJpeg() Method
Returns whether to convert slide images to JPEG format.
Declaration
public boolean getConvertImagesToJpeg()
Returns
| Type | Description |
|---|---|
| boolean |
|
getDocumentOptions() Method
Returns document-level PDF export options.
Declaration
public DocumentExportOptions getDocumentOptions()
Returns
| Type | Description |
|---|---|
| DocumentExportOptions | Document-level PDF export options. |
getEncryptionOptions() Method
Returns encryption settings for the exported PDF.
Declaration
public EncryptionOptions getEncryptionOptions()
Returns
| Type | Description |
|---|---|
| EncryptionOptions | Encryption settings for the exported PDF. |
getExportHiddenSlides() Method
Returns whether to include hidden slides in the exported PDF document.
Declaration
public boolean getExportHiddenSlides()
Returns
| Type | Description |
|---|---|
| boolean |
|
getImageQuality() Method
Returns the image quality level.
Declaration
public ImageQuality getImageQuality()
Returns
| Type | Description |
|---|---|
| ImageQuality | The quality level for rasterized images. |
getNonEmbeddedFonts() Method
Returns fonts excluded from PDF embedding.
Declaration
public String getNonEmbeddedFonts()
Returns
| Type | Description |
|---|---|
| String | A string that specifies fonts to exclude from PDF embedding. |
getRasterizationResolution() Method
Returns the rasterization resolution.
Declaration
public int getRasterizationResolution()
Returns
| Type | Description |
|---|---|
| int | The DPI value used to rasterize vector content. The default value is |
getRasterizeImages() Method
Returns whether the exporter rasterizes slide images.
Declaration
public boolean getRasterizeImages()
Returns
| Type | Description |
|---|---|
| boolean |
|
getShowPrintDialogOnOpen() Method
Returns whether the PDF viewer displays the Print dialog when the document is opened.
Declaration
public boolean getShowPrintDialogOnOpen()
Returns
| Type | Description |
|---|---|
| boolean |
|
getSignatureOptions() Method
Returns digital signature settings for the exported PDF.
Declaration
public SignatureOptions getSignatureOptions()
Returns
| Type | Description |
|---|---|
| SignatureOptions | Digital signature settings for the exported PDF. |
setConvertImagesToJpeg(boolean value) Method
Sets whether to convert bitmap images to JPEG format.
Declaration
public void setConvertImagesToJpeg(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setEncryptionOptions(EncryptionOptions value) Method
Specifies encryption settings for the exported PDF.
Declaration
public void setEncryptionOptions(EncryptionOptions value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | EncryptionOptions | Encryption settings for the PDF. |
setExportHiddenSlides(boolean value) Method
Specifies whether to include hidden slides in the exported PDF document.
Declaration
public void setExportHiddenSlides(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setImageQuality(ImageQuality value) Method
Specifies JPEG image quality (when JPEG conversion is enabled).
Declaration
public void setImageQuality(ImageQuality value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ImageQuality | JPEG image quality. |
setNonEmbeddedFonts(String value) Method
Specifies fonts excluded from PDF embedding.
Declaration
public void setNonEmbeddedFonts(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | A string that specifies fonts to exclude from PDF embedding. |
setRasterizationResolution(int value) Method
Specifies the rasterization resolution (in DPI) when rasterization is enabled.
Declaration
public void setRasterizationResolution(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The rasterization resolution (in DPI). |
setRasterizeImages(boolean value) Method
Sets whether to convert vector graphics to raster images.
Declaration
public void setRasterizeImages(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setShowPrintDialogOnOpen(boolean value) Method
Specifies whether the PDF viewer displays the Print dialog when the document is opened.
Declaration
public void setShowPrintDialogOnOpen(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|