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

Property Type Description
cMapPacked? boolean Whether CMap files are packed.
cMapUrl? string URL for CMap files.
data? ArrayBuffer | string | Uint8Array Document data as ArrayBuffer, string, or Uint8Array.
disableAutoFetch? boolean Whether to disable automatic data fetching.
disableFontFace? boolean Whether to disable font face creation.
disableRange? boolean Whether to disable range requests.
disableStream? boolean Whether to disable streaming.
httpHeaders? Record<string, string> HTTP headers to include in requests.
isEvalSupported? boolean Whether eval is supported in the environment.
isOffscreenCanvasSupported? boolean Whether OffscreenCanvas is supported.
password? string Password for encrypted documents.
standardFontDataUrl? string URL for standard font data files.
url? string Document URL.
useSystemFonts? boolean Whether to use system fonts.
verbosity? number Verbosity level.
withCredentials? boolean Whether to include credentials in requests.
worker? PDFWorker PDF.js worker instance.

Links to this page: