

Saves the PDF object with the optional filename (creates user download prompt).

Supported types: 'img', 'datauristring'/ 'dataurlstring', and 'datauri'/ 'dataurl'. Returns the specified data type for the image as a Promise (use. Sends type and options to the jsPDF object’s output method, and returns the result as a Promise (use. Routes to the appropriate outputPdf or outputImg method based on specified src ( 'pdf' (default) or 'img'). Each target also has its own toX method that can be called directly: toContainer(), toCanvas(), toImg(), and toPdf(). Optional type specifies other sources: 'string', 'element', 'canvas', or 'img'.Ĭonverts the source to the specified target ( 'container', 'canvas', 'img', or 'pdf'). Sets the source (HTML string or element) for the PDF.
