generateThumbnails

suspend fun generateThumbnails(context: Context, source: Any, pageIndices: List<Int>, config: ThumbnailConfig = ThumbnailConfig(), password: String? = null, useCache: Boolean = true): List<Bitmap?>

Generates thumbnails for multiple pages of a PDF document.

Return

List of generated thumbnail bitmaps (null entries for failed generations).

Parameters

context

The application context.

source

The PDF document source.

pageIndices

List of page indices to generate thumbnails for (0-based).

config

The thumbnail configuration for all pages.

password

Optional password for encrypted PDFs.

useCache

Whether to use caching for improved performance. Default is true.