Skip to content

Page

A page being drawn: its boxes and rotation, its Surface, then Page.finish.

artBox(rect): this

/ArtBox.

Rect

this


bleedBox(rect): this

/BleedBox.

Rect

this


cropBox(rect): this

/CropBox (the visible region), in the media box’s page space.

Rect

this


finish(): string

Writes the page into its builder and frees the page’s WASM side; the page takes no more drawing afterwards (builder-finished).

string

the page’s ID.

LaminaError invalid-geometry, builder-finished.


free(): void

Drops the page without writing it (frees its WASM side).

void


rotate(degrees): this

/Rotate: 0, 90, 180 or 270 degrees.

0 | 90 | 180 | 270

this


surface(): Surface

What the page is drawn with (the same object on every call).

Surface


trimBox(rect): this

/TrimBox.

Rect

this


userUnit(unit): this

/UserUnit, for pages larger than 14,400 units.

number

this