Edit this page

pdf.landscape Boolean (default: false)

If set to true, changes the document orientation to landscape. This property takes effect when pdf.paperSize is set.

Example - enabling landscape mode

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
      pdf: {
          paperSize: "A4",
          landscape: true
      },
      dataSource: {
          data: [{ "items": [{ items: [{}] }] }],
          schema: { model: { children: "items" } }
      },
      layout: {
          type: "tree"
      }
  });

  var diagram = $("#diagram").getKendoDiagram();
  diagram.saveAsPDF();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy