public enum PdfOptimizationMode extends Enum<PdfOptimizationMode>
Specify the balance between file size and image quality of saved PDFs.
| Enum Constant and Description |
|---|
AGGRESSIVE
Significantly reduce the PDF file size at the expense of lower image quality.
|
BALANCED
Downsample images to balance file size and image quality.
|
HIGH_QUALITY
Smaller PDF file size at the expense of slight image downsampling.
|
MAXIMUM_QUALITY
Optimize file size while preserving the highest image quality.
|
NONE
Do not optimize PDF size.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static PdfOptimizationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PdfOptimizationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PdfOptimizationMode NONE
public static final PdfOptimizationMode MAXIMUM_QUALITY
public static final PdfOptimizationMode HIGH_QUALITY
public static final PdfOptimizationMode BALANCED
public static final PdfOptimizationMode AGGRESSIVE
public static PdfOptimizationMode[] values()
for (PdfOptimizationMode c : PdfOptimizationMode.values()) System.out.println(c);
public static PdfOptimizationMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
Copyright © 2025 Aspose. All rights reserved.