PdfOptimizationMode

Inheritance: java.lang.Object, java.lang.Enum

public enum PdfOptimizationMode extends Enum<PdfOptimizationMode>

Significantly reduce the PDF file size at the expense of lower image quality.

Specify the balance between file size and image quality of saved PDFs.

Fields

FieldDescription
AGGRESSIVESignificantly reduce the PDF file size at the expense of lower image quality.
BALANCEDDownsample images to balance file size and image quality.
HIGH_QUALITYSmaller PDF file size at the expense of slight image downsampling.
MAXIMUM_QUALITYOptimize file size while preserving the highest image quality.
NONEDo not optimize PDF size.

AGGRESSIVE

public static final PdfOptimizationMode AGGRESSIVE

Significantly reduce the PDF file size at the expense of lower image quality.

BALANCED

public static final PdfOptimizationMode BALANCED

Downsample images to balance file size and image quality.

HIGH_QUALITY

public static final PdfOptimizationMode HIGH_QUALITY

Smaller PDF file size at the expense of slight image downsampling.

MAXIMUM_QUALITY

public static final PdfOptimizationMode MAXIMUM_QUALITY

Optimize file size while preserving the highest image quality.

NONE

public static final PdfOptimizationMode NONE

Do not optimize PDF size.