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>