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.
FlateFlate compression.
JpegJPEG 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.
NoneSaves raw image bytes resulting in bigger PDF file sizes.
RleRun Length compression.

Methods

MethodDescription
valueOf(Class arg0, String arg1)
compareTo(E arg0)
describeConstable()
equals(Object arg0)
getClass()
getDeclaringClass()
hashCode()
name()
notify()
notifyAll()
ordinal()
toString()
valueOf(String name)
values()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String

Returns: T

compareTo(E arg0)

public final int compareTo(E arg0)

Parameters:

ParameterTypeDescription
arg0E

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:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
namejava.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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int