OptionalCanvasFactory for creating canvases.
Default: {DOMCanvasFactory}.
OptionalcanvasUsed to determine when to resize images (via OffscreenCanvas). Use -1 to use a slower fallback algorithm.
Default: undefined.
OptionalcSpecifies if Adobe CMaps are binary-packed.
Default: true.
OptionalCFactory for reading built-in CMap files.
Default: {DOMCMapReaderFactory}.
OptionalcURL where predefined Adobe CMaps are located. Include trailing slash.
Default: undefined.
OptionaldataBinary PDF data.
Use TypedArrays (e.g., Uint8Array) to improve memory usage. If PDF data is BASE64-encoded, use atob() to convert it to a binary string first.
NOTE: If TypedArrays are used, they will generally be transferred to the worker thread, reducing main-thread memory usage but taking ownership of the array.
Default: undefined.
OptionaldisableDisable pre-fetching of PDF data. Requires disableStream: true to work fully.
Default: false.
OptionaldisableDisable @font-face/Font Loading API; use built-in glyph renderer instead.
Default: false in browsers, true in Node.js.
OptionaldisableDisable range requests for PDF loading.
Default: false.
OptionaldisableDisable streaming PDF data.
Default: false.
OptionaldocBase URL of the document, used to resolve relative URLs in annotations and outline items.
Default: undefined.
OptionalenableEnable hardware acceleration for rendering.
Default: false.
OptionalenableRender XFA forms if present.
Default: false.
OptionalFilterFactory for creating SVG filters during rendering.
Default: {DOMFilterFactory}.
OptionalfontInclude extra (non-rendering) font properties when exporting font data from worker. Increases memory usage.
Default: false.
OptionalhttpBasic authentication headers.
Default: undefined.
OptionaliccURL where predefined ICC profiles are located. Include trailing slash.
Default: undefined.
OptionalisWhether evaluating strings as JS is allowed (for PDF function performance).
Default: true.
OptionalisWhether ImageDecoder can be used in worker.
Default: true in browsers, false in Node.js.
NOTE: Temporarily disabled in Chromium due to bugs:
OptionalisWhether OffscreenCanvas can be used in worker.
Default: true in browsers, false in Node.js.
OptionallengthThe PDF file length. Used for progress reports and range requests.
Default: undefined.
OptionalmaxMax image size in total pixels (width * height). Use -1 for no limit.
Default: -1.
OptionalownerExplicit document context for creating elements and loading resources. Defaults to current document.
Default: undefined.
OptionalpasswordFor decrypting password-protected PDFs.
Default: undefined.
OptionalpdfEnable debugging hooks (see web/debugger.js).
Default: false.
OptionalrangeAllows using a custom range transport implementation.
Default: undefined.
OptionalrangeMaximum number of bytes fetched per range request.
Default: 65536 (2^16).
OptionalStandardFactory for reading standard font files.
Default: {DOMStandardFontDataFactory}.
OptionalstandardURL for standard font files. Include trailing slash.
Default: undefined.
OptionalstopReject promises (e.g., getTextContent) on parse errors instead of recovering partially.
Default: false.
OptionalurlThe URL of the PDF.
Default: undefined.
OptionaluseIf true, non-embedded fonts fall back to system fonts.
Default: true in browsers, false in Node.js (unless disableFontFace === true, then always false).
OptionaluseAttempt to use WebAssembly for better performance (e.g., image decoding).
Default: true.
OptionaluseEnable fetch() in worker thread for CMap/font/WASM files. If true, factory options are ignored.
Default: true in browsers, false in Node.js.
OptionalverbosityControls logging level; use constants from VerbosityLevel.
Default: undefined.
OptionalWasmFactory for reading WASM files.
Default: {DOMWasmFactory}.
OptionalwasmURL for WebAssembly files. Include trailing slash.
Default: undefined.
OptionalwithIndicates whether cross-site Access-Control requests should be made using credentials (e.g., cookies or auth headers).
Default: false.
OptionalworkerThe worker used for loading and parsing PDF data.
Default: undefined.
LoadParameters PDF loading parameters.