exportPDFAsFile
exportPDFAsFile(
canvas
,doc
,fileName
,options
):Promise
<void
>
Export the doc to PDF file
Parameters
• canvas: Canvas
The editor’s canvas
• doc: Doc
The document to export
• fileName: string
The file name of the exported PDF
• options: Partial
<ExportPDFOptions
>
The options for exporting
Returns
Promise
<void
>
The export the generated PDF file