CPDFCompressAlgorithm enum

Image compression algorithm applied while optimizing a document.

The values map one to one onto the Android CPDFDocument.CPDFCompressAlgorithm enum. The wire format is the string in value rather than the native ordinal, because the iOS CPDF_COMP_ALG enum uses different numeric values for the same algorithms.

Inheritance
Available extensions

Values

none → const CPDFCompressAlgorithm

Keeps the existing encoding of the image.

const CPDFCompressAlgorithm('none')
flate → const CPDFCompressAlgorithm

Lossless Flate (zlib) encoding.

const CPDFCompressAlgorithm('flate')
runLength → const CPDFCompressAlgorithm

Lossless run length encoding.

const CPDFCompressAlgorithm('run_length')
jpeg → const CPDFCompressAlgorithm

Lossy DCT encoding, i.e. baseline JPEG.

const CPDFCompressAlgorithm('jpeg')
jbig2 → const CPDFCompressAlgorithm

JBIG2 encoding, intended for monochrome images.

const CPDFCompressAlgorithm('jbig2')
jpeg2000 → const CPDFCompressAlgorithm

Lossy JPEG 2000 (JPX) encoding.

const CPDFCompressAlgorithm('jpeg2000')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → String
The wire value exchanged with the native platforms.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromValue(String? value) → CPDFCompressAlgorithm
Resolves a native wire value back to an enum entry.

Constants

values → const List<CPDFCompressAlgorithm>
A constant List of the values in this enum, in order of their declaration.