titleString
(default: null)
Sets the title of the PDF file.
Example
<button class='export-doc k-button'>Export PDF with Title</button>
<div class="content">
<p>This PDF has a custom title field.</p>
</div>
<script>
$(".export-doc").click(function() {
kendo.drawing.drawDOM($(".content"))
.then(function(group) {
return kendo.drawing.exportPDF(group, {
title: "Quarterly Business Report - Q4 2024",
paperSize: "A4"
});
})
.done(function(data) {
kendo.saveAs({
dataURI: data,
fileName: "TitleDemo.pdf"
});
});
});
</script>
In this article