[]
Ƭ CheckCancelCallback: () => boolean
▸ (): boolean
Defines a type of callback that gets called to check if cancellation was requested.
boolean
Ƭ HtmlExportResult: Object
Export result.
Name | Type | Description |
---|---|---|
data |
Blob | string |
Result content. The content is 'string' if 'multiPage = true', otherwise content is zip blob. |
download |
(filename? : string ) => void |
Triggers browser download of file with export result. |
Ƭ HtmlSettings: Object
Defines HTML export settings.
Name | Type | Description |
---|---|---|
autoPrint? |
boolean |
Set to true to add script for a printing page when it is loaded. |
embedImages? |
"none" | "embed" | "external" |
Embed images into HTML. |
multiPage? |
boolean |
Export each page as separate HTML file. |
outputType? |
"html" | "zip" | "auto" |
Export as ZIP archive with HTML files. |
title? |
string |
A title for an HTML page. |
Ƭ OnProgressCallback: (pageNumber
: number
) => void
▸ (pageNumber
): void
Defines a type of callback that gets called after each page is rendered.
Name | Type |
---|---|
pageNumber |
number |
void
▸ exportDocument(source
, settings?
, onProgress?
, checkCancel?
): Promise
<HtmlExportResult
>
Exports a provided PageDocument to the HTML format and returns it as string or Blob.
Name | Type | Description |
---|---|---|
source |
PageDocument | VDomRenderer |
PageDocument to export. |
settings? |
HtmlSettings |
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
<HtmlExportResult
>