autoPrintBoolean
(default: false)
Specifies if the Print dialog should be opened immediately after loading the document.
Note: Some PDF Readers/Viewers will not allow opening the Print Preview by default, it might be necessary to configure the corresponding add-on or application.
Example
<button class='export-doc k-button'>Export PDF with Print Dialog</button>
<div class="content">
<p>This PDF will automatically show the print dialog when opened.</p>
</div>
<script>
$(".export-doc").click(function() {
kendo.drawing.drawDOM($(".content"))
.then(function(group) {
return kendo.drawing.exportPDF(group, {
autoPrint: true,
paperSize: "A4"
});
})
.done(function(data) {
kendo.saveAs({
dataURI: data,
fileName: "AutoPrint.pdf"
});
});
});
</script>
In this article