[]
Ƭ CheckCancelCallback: () => boolean
▸ (): boolean
Defines a type of callback that gets called to check if cancellation was requested.
boolean
Ƭ DocumentSecurity: Object
Defines document security settings.
Name | Type | Description |
---|---|---|
ownerPassword? |
string |
Protects a document from printing or modifying, see Permissions. |
permissions? |
Permissions |
The document permissions. |
userPassword? |
string |
Encrypts a document with a password. |
Ƭ OnProgressCallback: (pageNumber
: number
) => void
▸ (pageNumber
): void
Defines a type of callback that gets called after each page is rendered.
Name | Type |
---|---|
pageNumber |
number |
void
Ƭ PdfExportResult: Object
Export result.
Name | Type | Description |
---|---|---|
data |
Blob |
Result content. |
download |
(filename? : string ) => void |
Triggers browser download of file with export result. |
Ƭ PdfFontDescriptor: Object
Defines descriptor of font.
Name | Type | Description |
---|---|---|
name |
string |
Font name. |
postscriptName? |
string |
The font postscript name. |
source |
string | string [] |
The source of the font. |
style? |
string |
The font style. |
useAsDefault? |
boolean |
True - to use the font as default font. |
weight? |
string |
The font weight. |
Ƭ PdfSettings: Object
Defines PDF export settings.
Name | Type | Description |
---|---|---|
autoPrint? |
boolean |
Prints a document on opening the file. |
fonts? |
PdfFontDescriptor [] |
Available *.ttf font files. |
info? |
PdfSettingsInfo |
Document metadata. |
pdfVersion? |
PdfVersion |
PDF Version. |
security? |
DocumentSecurity |
Document security settings. |
Ƭ PdfSettingsInfo: Object
Defines PDF metadata.
Name | Type | Description |
---|---|---|
author? |
string |
Author |
keywords? |
string |
keywords |
subject? |
string |
Subject |
title? |
string |
Title |
Ƭ PdfVersion: "1.3"
| "1.4"
| "1.5"
| "1.6"
| "1.7"
| "1.7ext3"
| "PDF/A-2b"
| "PDF/A-3b"
The version of PDF specification.
Ƭ Permissions: Object
Defines PDF permissions.
Name | Type | Description |
---|---|---|
annotating? |
boolean |
Allows annotating. |
contentAccessibility? |
boolean |
Enables content accessibility. |
copying? |
boolean |
Allows copying. |
documentAssembly? |
boolean |
Allows document assembly. |
modifying? |
boolean |
Allows modifying. |
printing? |
"lowResolution" | "highResolution" | "none" |
Allows printing. |
▸ exportDocument(source
, settings?
, onProgress?
, checkCancel?
): Promise
<PdfExportResult
>
Exports a provided PageDocument to the PDF format and returns it as Data URI or Blob.
Name | Type | Description |
---|---|---|
source |
PageDocument | VDomRenderer |
PageDocument to export. |
settings? |
PdfSettings |
Export settings. |
onProgress? |
OnProgressCallback |
The callback that gets called after each sheet is rendered. |
checkCancel? |
CheckCancelCallback |
The callback that gets called before sheet rendering, the rendering process will be canceled if the function returns true. |
Promise
<PdfExportResult
>
▸ registerPdfFont(fontDescriptor
): void
deprecated
Use FontStore.registerFonts instead.
Registers .*ttf fonts to be used in PDF.
Name | Type |
---|---|
fontDescriptor |
PdfFontDescriptor |
void