Skip to content

PdfJsModule.getDocument method

PdfJsModule › getDocument

Unofficial

Loads a PDF document from the given source.

Signature:

getDocument(src: string | ArrayBuffer | DocumentInitParameters | Uint8Array<ArrayBufferLike> | URL): PDFDocumentLoadingTask

Parameters:

Parameter Type Description
src string | ArrayBuffer | DocumentInitParameters | Uint8Array<ArrayBufferLike> | URL The document source.

Returns: PDFDocumentLoadingTaskThe loading task for the document.