Skip to content
Lamina PDF
Unreleased

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

reset

reset(): void

Replaces each loaded module’s instance with a fresh one, so its memory returns to the size it had after init(): WebAssembly memory grows and never shrinks, and this gives it back. Every document, page, builder and save job made before throws instance-reset afterwards, so call it while none is in use, such as between jobs on a server. Images and fonts keep working.

void