autoprint

Methods

(inner) autoPrint(options) → {jsPDF}

Source:

Makes the PDF automatically print. This works in Chrome, Firefox, Acrobat Reader.

Example
var doc = new jsPDF();
doc.text(10, 10, 'This is a test');
doc.autoPrint({variant: 'non-conform'});
doc.save('autoprint.pdf');
Parameters:
Name Type Description
options Object

(optional) Set the attribute variant to 'non-conform' (default) or 'javascript' to activate different methods of automatic printing when opening in a PDF-viewer .

Returns:
Type
jsPDF