changeSize

common
fun changeSize(width: Double, height: Double)

Changes the size of a PdfSurface for the current (and subsequent) pages. This function should ONLY be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface, or immediately after completing a page with either cairo_show_page() or cairo_copy_page().

Parameters

width

New surface width in points.

height

New surface height in points.

linuxArm32
fun changeSize(width: Double, height: Double)

Parameters

width

New surface width in points.

height

New surface height in points.

linuxX64
fun changeSize(width: Double, height: Double)

Parameters

width

New surface width in points.

height

New surface height in points.