ThumbnailConfig

data class ThumbnailConfig(val width: Int = 200, val height: Int = 200, val quality: Bitmap.Config = Bitmap.Config.RGB_565, val annotationRendering: Boolean = false, val aspectRatio: AspectRatio = AspectRatio.PRESERVE, val backgroundColor: Int = Color.WHITE)

Configuration class for PDF thumbnail generation.

Parameters

width

The width of the thumbnail in pixels. Default is 200.

height

The height of the thumbnail in pixels. Default is 200.

quality

The bitmap configuration for quality vs memory trade-off. Default is RGB_565.

annotationRendering

Whether to render annotations in the thumbnail. Default is false.

aspectRatio

How to handle the aspect ratio of the original page. Default is PRESERVE.

backgroundColor

Background color for transparent areas. Default is white.

Constructors

Link copied to clipboard
constructor(width: Int = 200, height: Int = 200, quality: Bitmap.Config = Bitmap.Config.RGB_565, annotationRendering: Boolean = false, aspectRatio: AspectRatio = AspectRatio.PRESERVE, backgroundColor: Int = Color.WHITE)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int = 200
Link copied to clipboard
Link copied to clipboard
val width: Int = 200