WorkerPDFiumOptions
Defined in: src/context/worker-client.ts:26
Options for creating a high-level worker-backed PDFium instance.
Extends
Section titled “Extends”Properties
Section titled “Properties”destroyTimeout?
Section titled “destroyTimeout?”
optionaldestroyTimeout:number
Defined in: src/context/worker-proxy.ts:46
Timeout for graceful DESTROY before forced termination in milliseconds (default: 5000)
Inherited from
Section titled “Inherited from”WorkerProxyOptions.destroyTimeout
renderTimeout?
Section titled “renderTimeout?”
optionalrenderTimeout:number
Defined in: src/context/worker-proxy.ts:44
Timeout for render operations in milliseconds (default: 120000)
Inherited from
Section titled “Inherited from”WorkerProxyOptions.renderTimeout
timeout?
Section titled “timeout?”
optionaltimeout:number
Defined in: src/context/worker-proxy.ts:42
Default request timeout in milliseconds (default: 30000)
Inherited from
Section titled “Inherited from”wasmBinary
Section titled “wasmBinary”wasmBinary:
ArrayBuffer
Defined in: src/context/worker-client.ts:30
Preloaded PDFium WASM binary to initialise inside the worker.
workerFactory()?
Section titled “workerFactory()?”
optionalworkerFactory: (url) =>WorkerTransport
Defined in: src/context/worker-client.ts:32
Custom worker factory (advanced / Node.js integration).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url | string | URL |
Returns
Section titled “Returns”Overrides
Section titled “Overrides”WorkerProxyOptions.workerFactory
workerUrl
Section titled “workerUrl”workerUrl:
string|URL
Defined in: src/context/worker-client.ts:28
URL to the worker entry script.