renderPageToBitmap

abstract fun renderPageToBitmap(@NonNull context: Context, pageIndex: Int, width: Int, height: Int): Bitmap

Renders page to a bitmap.

Return

Bitmap with rendered page.

Parameters

context

Application context.

pageIndex

Page number of the page to render, zero indexed.

width

Bitmap width.

height

Bitmap height.


abstract fun renderPageToBitmap(@NonNull context: Context, pageIndex: Int, width: Int, height: Int, @NonNull configuration: PageRenderConfiguration): Bitmap

Renders page to a bitmap.

Return

Bitmap with rendered page.

Parameters

context

Application context.

pageIndex

Page number of the page to render, zero indexed.

width

Bitmap width.

height

Bitmap height.

configuration

Advanced configuration options.