Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.JavaObject
PdfExportOptions

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

true to convert slide images to JPEG format; otherwise, false.

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. null if not configured.

getExportHiddenSlides() Method

Returns whether to include hidden slides in the exported PDF document.

Declaration

public boolean getExportHiddenSlides()

Returns

Type Description
boolean

true to include hidden slides in the exported PDF document; otherwise, false.

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 96.

getRasterizeImages() Method

Returns whether the exporter rasterizes slide images.

Declaration

public boolean getRasterizeImages()

Returns

Type Description
boolean

true whether the exporter rasterizes slide images; otherwise, false.

getShowPrintDialogOnOpen() Method

Returns whether the PDF viewer displays the Print dialog when the document is opened.

Declaration

public boolean getShowPrintDialogOnOpen()

Returns

Type Description
boolean

true if the PDF viewer displays the Print dialog when the document is opened; otherwise, false.

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

true to convert bitmap images to JPEG format; otherwise, false.

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. null for no encryption.

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

true to include hidden slides in the exported PDF document; otherwise, false.

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

true to convert vector graphics to raster images; otherwise, false.

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

true to display the Print dialog when the document is opened; false to suppress it.