subjectString(default: null)

Sets the subject of the PDF file.

Example

<button class='export-doc k-button'>Export PDF with Subject</button>
<div class="content">
  <p>This PDF has a custom subject field.</p>
</div>
<script>
  $(".export-doc").click(function() {
    kendo.drawing.drawDOM($(".content"))
      .then(function(group) {
        return kendo.drawing.exportPDF(group, {
          subject: "Monthly Sales Report Analysis",
          paperSize: "A4"
        });
      })
      .done(function(data) {
        kendo.saveAs({
          dataURI: data,
          fileName: "SubjectDemo.pdf"
        });
      });
  });
</script>
In this article
subject
Not finding the help you need?
Contact Support