pdf.margin Object
Specifies the margins of the page and accepts numbers or strings with units.
The supported units are:
mm
cm
in
- (Default)
pt
Example - setting the margins
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
toolbar: ["pdf"],
columns: [
{ field: "FirstName", title: "First Name" },
{ field: "LastName", title: "Last Name", width: 160 },
{ field: "Position" }
],
pdf: {
margin: {
left: 10,
right: "10pt",
top: "10mm",
bottom: "1in"
}
},
dataSource: {
transport: {
read: {
url: "https://demos.telerik.com/kendo-ui/service/EmployeeDirectory/All",
dataType: "jsonp"
}
},
schema: {
model: {
id: "EmployeeID",
fields: {
parentId: { field: "ReportsTo", nullable: true },
EmployeeID: { field: "EmployeeId", type: "number" },
Extension: { field: "Extension", type: "number" }
},
expanded: true
}
}
}
});
</script>
pdf.margin.bottom Number|String
(default: 0)
The bottom margin. Numbers are considered as pt
units.
pdf.margin.left Number|String
(default: 0)
The left margin. Numbers are considered as pt
units.
pdf.margin.right Number|String
(default: 0)
The right margin. Numbers are considered as pt
units.
pdf.margin.top Number|String
(default: 0)
The top margin. Numbers are considered as pt
units.