Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

Page

A page being drawn: its boxes and rotation, its Surface, then Page.finish. Freed with its builder; using or Page.free drops it without writing it.

[dispose](): void

Drops the page at the end of a using block (an alias of free()).

void


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.

LaminaPdfError invalid-geometry, builder-finished.


free(): void

Drops the page without writing it and frees its WASM side; a second call does nothing, and any other call afterwards throws disposed.

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