Downloads the document of the active viewer. Rejects with NOT_INITIALIZED when no document is open.
Optional
Download options.
A Promise that resolves when the download starts.
// Download a copy without annotationsawait instance.UI.downloadPdf({ filename: 'contract.pdf', includeAnnotations: false }); Copy
// Download a copy without annotationsawait instance.UI.downloadPdf({ filename: 'contract.pdf', includeAnnotations: false });
Downloads the document of the active viewer. Rejects with NOT_INITIALIZED when no document is open.