PdfImageCompression
Contents
[
Hide
]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
Field | Description |
---|---|
Auto | Automatically selects the most appropriate compression for each image. |
None | Saves raw image bytes resulting in bigger PDF file sizes. |
Rle | Run Length compression. |
Flate | Flate compression. |
LzwBaselinePredictor | Predictor selection is restricted to PNG Paeth predictor to speed-up the process. |
LzwOptimizedPredictor | Predictor selection is more complicated and should result in smaller image sizes but taking more time. |
Jpeg | JPEG compression. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: PdfImageCompression