PdfRenderRequest

data class PdfRenderRequest(val outputSize: PdfPixelSize, val sourceRect: PdfRect? = null, val rotation: PdfRotation = PdfRotation.Degrees0, val backgroundColor: PdfColor = PdfColor.White, val renderAnnotations: Boolean = true, val grayscale: Boolean = false, val optimizeTextForLcd: Boolean = false)

Describes how a page is rendered into a bitmap.

Constructors

Link copied to clipboard
constructor(outputSize: PdfPixelSize, sourceRect: PdfRect? = null, rotation: PdfRotation = PdfRotation.Degrees0, backgroundColor: PdfColor = PdfColor.White, renderAnnotations: Boolean = true, grayscale: Boolean = false, optimizeTextForLcd: Boolean = false)

Properties

Link copied to clipboard

Fill color painted behind the page content. The color is expressed as ARGB; returned pixel bytes still follow PdfBitmap.format.

Link copied to clipboard

Renders the page without color information.

Link copied to clipboard

Optimizes text rendering for LCD subpixel display.

Link copied to clipboard

Destination bitmap size in pixels.

Link copied to clipboard

Whether annotation appearances are painted on top of page content.

Link copied to clipboard

Extra rotation applied on top of the page's intrinsic rotation.

Link copied to clipboard

Reserved for cropped rendering. Not implemented by the current backends; must be null.