PdfData - lublak/pdfdataextract GitHub Wiki
Class: PdfData
the data of the pdf
Table of contents
Properties
Methods
Properties
fingerprint
• Optional
Readonly
fingerprint: string
the fingerprint
readonly
Defined in
info
• Optional
Readonly
info: Info
the informations/description
readonly
Defined in
metadata
• Optional
Readonly
metadata: Metadata
the metadata
readonly
Defined in
outline
• Optional
Readonly
outline: readonly Outline
[]
the outline/bookmarks
readonly
Defined in
pages
• Optional
Readonly
pages: number
the number of pages
readonly
Defined in
permissions
• Optional
Readonly
permissions: Permissions
the permission flags
readonly
Defined in
text
• Optional
Readonly
text: readonly string
[]
extracted text per page
readonly
Defined in
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