Skip to content

PdfJsModule

Unofficial

The PDF.js library module type, representing the window.pdfjsLib object.

Import:

import type { PdfJsModule } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PdfJsModule

Properties

PropertyTypeDescription
buildstringThe build identifier of the PDF.js library.
GlobalWorkerOptionsGlobalWorkerOptionsTypeGlobal worker options for PDF.js.
PasswordResponsesPdfJsPasswordResponsesThe reasons a document can ask for a password.
PDFDateStringPdfJsDateStringConverter for the date strings a PDF document stores in its metadata.
UtilPdfJsUtilGeometry helpers of the PDF.js library.
versionstringThe version string of the PDF.js library.

Methods

MethodReturnsDescription
getDocument(src)PDFDocumentLoadingTaskLoads a PDF document from the given source.
normalizeUnicode(text)stringNormalizes the Unicode of the given text so that it can be searched and copied as typed.

Links to this page: