Skip to content
Lamina PDF
Unreleased

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

SaveJob

A save in progress, stepped by the caller with a budget of work units (ADR 0028 §3). Freed with its document; every call after that throws disposed.

  • Handle<BaseGlue>

[dispose](): void

Frees the handle at the end of a using block (an alias of free()).

void

Handle.[dispose]


cancel(): void

Stops the job: its next step fails with cancelled.

void


free(): void

Frees the handle’s memory now; without it, the garbage collector frees it later. A second call does nothing, and any other call afterwards throws disposed. Prefer using, which calls this at the end of the block.

void

Handle.free


step(budget): any

Runs at most budget work units.

number

any

{ state: "progress", … }, or { state: "done", bytes, report } at the end.

LaminaPdfError cancelled, document-changed, job-finished, or the save’s errors.