Transaction
Collects the ops of one Document.transact call.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Transaction():
Transaction
Returns
Section titled “Returns”Transaction
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get ops(): readonly
OpJs[]
The ops collected so far.
Returns
Section titled “Returns”readonly OpJs[]
Methods
Section titled “Methods”apply()
Section titled “apply()”apply(
op):this
Adds op to the transaction.
Parameters
Section titled “Parameters”OpJs
Returns
Section titled “Returns”this
Throws
Section titled “Throws”LaminaError no-transaction after transact returned.
rotatePage()
Section titled “rotatePage()”rotatePage(
page,rotate):this
Sets a page’s /Rotate (rotatePage).
Parameters
Section titled “Parameters”string
the page’s ID (doc.page(0).id).
rotate
Section titled “rotate”0, 90, 180 or 270 degrees.
Returns
Section titled “Returns”this
setInfo()
Section titled “setInfo()”setInfo(
patch,at?):this
Patches the Info dictionary (setInfo).
Parameters
Section titled “Parameters”the entries to set (a string) or remove (null).
string
the modification date to write (D:20261030120000Z); omitted, none is written.
Returns
Section titled “Returns”this