TiffGeneratorParameters

data class TiffGeneratorParameters(var compression: CompressionMode = CompressionMode.LZW, var jpegQuality: Int = 80, var zipCompressionLevel: Int = 6, var dpi: Int = 72, var userFields: List<UserField> = listOf( ), var binarizationFilter: ParametricFilter? = null) : Parcelable

TIFF generator parameters.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(compression: CompressionMode = CompressionMode.LZW, jpegQuality: Int = 80, zipCompressionLevel: Int = 6, dpi: Int = 72, userFields: List<UserField> = listOf( ), binarizationFilter: ParametricFilter? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Filter to apply to the input image when adding pages with binarization. If set, the filter is applied to the input image and the resulting image is stored as a 1-bit TIFF. When storing documents it's typically best to use the BINARY_DOCUMENT_OPTIMIZED_COMPRESSION compression mode (CCITT_T6) instead of the default, as it tends to produce the smallest file sizes. If not set, simple thresholding is applied to the image, instead.

Link copied to clipboard

Compression.

Link copied to clipboard
var dpi: Int

DPI value.

Link copied to clipboard

JPEG quality (TIFFTAG_JPEGQUALITY). Values range from 0 to 100.

Link copied to clipboard

User-defined fields.

Link copied to clipboard

ZIP/Deflate compression level (TIFFTAG_ZIPQUALITY). Values range from 1 to 9.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject