Skip to content

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

LaminaError 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