Skip to content

Class PdfData

lublak edited this page Jun 20, 2021 · 4 revisions

the data of the pdf

Table of contents

Properties

Methods

Properties

fingerprint

Optional Readonly fingerprint: string

the fingerprint

readonly

Defined in

pdfdata.ts:117


info

Optional Readonly info: Info

the informations/description

readonly

Defined in

pdfdata.ts:131


metadata

Optional Readonly metadata: Metadata

the metadata

readonly

Defined in

pdfdata.ts:138


outline

Optional Readonly outline: readonly Outline[]

the outline/bookmarks

readonly

Defined in

pdfdata.ts:124


pages

Optional Readonly pages: number

the number of pages

readonly

Defined in

pdfdata.ts:103


permissions

Optional Readonly permissions: Permissions

the permission flags

readonly

Defined in

pdfdata.ts:145


text

Optional Readonly text: readonly string[]

extracted text per page

readonly

Defined in

pdfdata.ts:110

Methods

extract

Static extract(data, options?): Promise<PdfData>

get the data

Parameters

Name Type Description
data Uint8Array the binary data file
options PdfDataOptions -

Returns

Promise<PdfData>

a promise that is resolved with a {PdfData} object with the extracted data

Defined in

pdfdata.ts:164