dateDate

The date when the PDF document is created. Defaults to new Date().

Example

<button class='export-doc k-button'>Export PDF with Custom Date</button>
<div class="content">
  <p>This PDF has a specific creation date.</p>
</div>
<script>
  $(".export-doc").click(function() {
    kendo.drawing.drawDOM($(".content"))
      .then(function(group) {
        return kendo.drawing.exportPDF(group, {
          date: new Date(2024, 0, 1), // January 1, 2024
          paperSize: "A4"
        });
      })
      .done(function(data) {
        kendo.saveAs({
          dataURI: data,
          fileName: "CustomDate.pdf"
        });
      });
  });
</script>
In this article
date
Not finding the help you need?
Contact Support