pdf.paperSize String|Array (default: "auto")

Specifies the paper size of the PDF document. The default auto setting means that the paper size is determined by the content.

The supported values are:

  • A predefined size such as A4, A3, and so on.
  • An array of two numbers which specify the width and height in points (1pt = 1/72in).
  • An array of two strings which specify the width and height in units. The supported units are:
  • mm
  • cm
  • in
  • pt

The size of the content in pixels will match the size of the output in points (1 pixel = 1/72 inch).

Example - setting a custom paper size

<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: {
      paperSize: ["20mm", "20mm"]
    },
    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>
In this article