Skip to content
Lamina PDF
Unreleased

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

Transaction

Collects the ops of one Document.transact call.

new Transaction(): Transaction

Transaction

get ops(): readonly OpJs[]

The ops collected so far.

readonly OpJs[]

apply(op): this

Adds op to the transaction.

OpJs

this

LaminaPdfError no-transaction after transact returned.


rotatePage(page, rotate): this

Sets a page’s /Rotate (rotatePage).

string

the page’s ID (doc.page(0).id).

Rotation

0, 90, 180 or 270 degrees.

this


setInfo(patch, at?): this

Patches the Info dictionary (setInfo).

InfoPatch

the entries to set (a string) or remove (null).

string

the modification date to write (D:20261030120000Z); omitted, none is written.

this