Skip to content

WorkerPDFiumOptions

@scaryterry/pdfium


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

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

optional destroyTimeout: number

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

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

WorkerProxyOptions.destroyTimeout


optional renderTimeout: number

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

Timeout for render operations in milliseconds (default: 120000)

WorkerProxyOptions.renderTimeout


optional timeout: number

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

Default request timeout in milliseconds (default: 30000)

WorkerProxyOptions.timeout


wasmBinary: ArrayBuffer

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

Preloaded PDFium WASM binary to initialise inside the worker.


optional workerFactory: (url) => WorkerTransport

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

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

ParameterType
urlstring | URL

WorkerTransport

WorkerProxyOptions.workerFactory


workerUrl: string | URL

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

URL to the worker entry script.