PdfImageCompression

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

public enum PdfImageCompression extends Enum<PdfImageCompression>

Specifies the type of compression applied to images in the PDF file.

Fields

FieldDescription
AutoAutomatically selects the most appropriate compression for each image.
NoneSaves raw image bytes resulting in bigger PDF file sizes.
RleRun Length compression.
FlateFlate compression.
LzwBaselinePredictorPredictor selection is restricted to PNG Paeth predictor to speed-up the process.
LzwOptimizedPredictorPredictor selection is more complicated and should result in smaller image sizes but taking more time.
JpegJPEG compression.

Methods

MethodDescription
values()
valueOf(String name)

Auto

public static final PdfImageCompression Auto

Automatically selects the most appropriate compression for each image.

None

public static final PdfImageCompression None

Saves raw image bytes resulting in bigger PDF file sizes.

Rle

public static final PdfImageCompression Rle

Run Length compression.

Flate

public static final PdfImageCompression Flate

Flate compression.

LzwBaselinePredictor

public static final PdfImageCompression LzwBaselinePredictor

Predictor selection is restricted to PNG Paeth predictor to speed-up the process. In practice performs surprisingly good. Better than LzwOptimizedPredictor .

LzwOptimizedPredictor

public static final PdfImageCompression LzwOptimizedPredictor

Predictor selection is more complicated and should result in smaller image sizes but taking more time.

Jpeg

public static final PdfImageCompression Jpeg

JPEG compression. Does not support transparency.

values()

public static PdfImageCompression[] values()

Returns: com.aspose.tex.rendering.PdfImageCompression[]

valueOf(String name)

public static PdfImageCompression valueOf(String name)

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: PdfImageCompression