Hello,
I found this helpful example on exporting multiple charts to PDF:
http://demos.telerik.com/kendo-ui/pdf-export/index
We have the need to put in a header and footer in our PDF. Is it possible to do that?
Here is our code:
$(document).on("click", "#btnPdf", function () {
// Convert the DOM element to a drawing using kendo.drawing.drawDOM
kendo.drawing.drawDOM(".my-results-page-container")
.then(function (group) {
// Render the result as a PDF file
return kendo.drawing.exportPDF(group, {
});
})
.done(function (data) {
// Save the PDF file
kendo.saveAs({
dataURI: data,
fileName: "My Test PDF.pdf"
});
});
});
We use the drawDOM function. Is it possible to use a pageTemplate? If so, I can't find any documentation on that subject...can someone help?
Thank you!