Skip to content

WorkerPDFiumOptions

@scaryterry/pdfium


Defined in: src/context/worker-client.ts:26

Options for creating a high-level worker-backed PDFium instance.

optional destroyTimeout: number

Defined in: src/context/worker-proxy.ts:46

Timeout for graceful DESTROY before forced termination in milliseconds (default: 5000)

WorkerProxyOptions.destroyTimeout


optional renderTimeout: number

Defined in: src/context/worker-proxy.ts:44

Timeout for render operations in milliseconds (default: 120000)

WorkerProxyOptions.renderTimeout


optional timeout: number

Defined in: src/context/worker-proxy.ts:42

Default request timeout in milliseconds (default: 30000)

WorkerProxyOptions.timeout


wasmBinary: ArrayBuffer

Defined in: src/context/worker-client.ts:30

Preloaded PDFium WASM binary to initialise inside the worker.


optional workerFactory: (url) => WorkerTransport

Defined in: src/context/worker-client.ts:32

Custom worker factory (advanced / Node.js integration).

ParameterType
urlstring | URL

WorkerTransport

WorkerProxyOptions.workerFactory


workerUrl: string | URL

Defined in: src/context/worker-client.ts:28

URL to the worker entry script.