OptionalassetsSelf-hosted engine locations. Node defaults resolve included package assets; browser bundlers should set baseUrl.
OptionalbaseUrl?: string | URLBase URL of the copied core asset directory, including sibling codecs, fonts and notices.
OptionalwasmUrl?: string | URLA WASM file URL whose directory contains the qcms/OpenJPEG runtime assets.
OptionalworkerUrl?: string | URLOverride for the patched pdf.worker.mjs module; retain its sibling PNG encoder.
OptionallimitsResource budget overrides; full image export fails clearly instead of silently downscaling.
OptionalocrBorrowed provider. Closing the PDF never closes this provider.
OptionalonCalled during work. Keep callbacks lightweight and avoid throwing.
OptionalpasswordPassword supplied to the PDF security handler; no interactive password prompt is opened.
OptionalsignalAborts queued work promptly; a synchronous engine decode already running may finish before cleanup.
Engine assets, password, resource budgets and an optional caller-owned OCR provider for a whole PDF.