This is Kendo's example code about how to export DOM to pdf
<div id="calendar"></div> <script> $("#calendar").kendoCalendar(); var draw = kendo.drawing; draw.drawDOM($("#calendar")) .then(function(root) { // Chaining the promise via then return draw.exportPDF(root, { paperSize: "A4", landscape: true }); }) .done(function(data) { // Here 'data' is the Base64-encoded PDF file kendo.saveAs({ dataURI: data, fileName: "calendar.pdf" }); }); </script>
I think I find an answer in this example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.