PDFSize

data class PDFSize(val width: Double, val height: Double)

Physical size of a PDF page in inches. If the aspect ratio doesn't match the aspect ratio of the page in pixels, margins will be added on both sides of the page image. If 0 is provided for the width or height, it is computed to match the aspect ratio of the image. Eg, for a receipt, we usually use width = 3.54f and height = 0.

Constructors

Link copied to clipboard
constructor(width: Double, height: Double)

Properties

Link copied to clipboard
Link copied to clipboard