Methods
(inner) autoPrint(options) → {jsPDF}
- Source:
使PDF在PDF查看器中打开时自动弹出打印对话框。
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 | (可选) 设置属性 variant 为 'non-conform' (默认) 或 'javascript' 以激活不同的自动打印方法,当在 PDF 查看器中打开时。 |
Returns:
- Type
- jsPDF