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
Field | Description |
---|---|
Auto | Automatically selects the most appropriate compression for each image. |
Flate | Flate compression. |
Jpeg | JPEG 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. |
None | Saves raw image bytes resulting in bigger PDF file sizes. |
Rle | Run Length compression. |
Methods
Auto
public static final PdfImageCompression Auto
Automatically selects the most appropriate compression for each image.
Flate
public static final PdfImageCompression Flate
Flate compression.
Jpeg
public static final PdfImageCompression Jpeg
JPEG compression. Does not support transparency.
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.
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.
valueOf(Class arg0, String arg1)
public static T <T>valueOf(Class<T> arg0, String arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Class | |
arg1 | java.lang.String |
Returns: T
compareTo(E arg0)
public final int compareTo(E arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | E |
Returns: int
describeConstable()
public final Optional<Enum.EnumDesc<E>> describeConstable()
Returns:
java.util.Optional<java.lang.Enum.EnumDesc
equals(Object arg0)
public final boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDeclaringClass()
public final Class<E> getDeclaringClass()
Returns:
java.lang.Class
hashCode()
public final int hashCode()
Returns: int
name()
public final String name()
Returns: java.lang.String
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
ordinal()
public final int ordinal()
Returns: int
toString()
public String toString()
Returns: java.lang.String
valueOf(String name)
public static PdfImageCompression valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: PdfImageCompression
values()
public static PdfImageCompression[] values()
Returns: com.aspose.xps.rendering.PdfImageCompression[]
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |