Skip to content

DocumentInitParameters

Unofficial

Parameters for initializing a PDF document.

Import:

import type { DocumentInitParameters } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface DocumentInitParameters

Properties

PropertyTypeDescription
cMapPacked?booleanWhether CMap files are packed.
cMapUrl?stringURL for CMap files.
data?ArrayBuffer | string | Uint8ArrayDocument data as ArrayBuffer, string, or Uint8Array.
disableAutoFetch?booleanWhether to disable automatic data fetching.
disableFontFace?booleanWhether to disable font face creation.
disableRange?booleanWhether to disable range requests.
disableStream?booleanWhether to disable streaming.
httpHeaders?Record<string, string>HTTP headers to include in requests.
isEvalSupported?booleanWhether eval is supported in the environment.
isOffscreenCanvasSupported?booleanWhether OffscreenCanvas is supported.
password?stringPassword for encrypted documents.
standardFontDataUrl?stringURL for standard font data files.
url?stringDocument URL.
useSystemFonts?booleanWhether to use system fonts.
verbosity?numberVerbosity level.
withCredentials?booleanWhether to include credentials in requests.
worker?PDFWorkerPDF.js worker instance.

Links to this page: