New to Kendo UI for jQuery? Start a free 30-day trial

Pdf.margin

configuration

Specifies the margins of the page and accepts numbers or strings with units.

The supported units are:

  • mm
  • cm
  • in
  • (Default) pt
<div id="propertyGrid"></div>
<script>
  $("#propertyGrid").kendoPropertyGrid({
    columns: {
        fieldColumn: { width: 200 },
        valueColumn: { width: 250 }
    },
    model: {
        foo: "bar",
        baz: 5
    },
    toolbar: ["pdf"],
    pdf: {
      margin: {
        left: 10,
        right: "10pt",
        top: "10mm",
        bottom: "1in"
      }
    }
  });
</script>

pdf.margin.bottom

Number|String

The bottom margin. Numbers are considered as pt units.

Default: 0

<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    pdf: {
        fileName: "PropertyGrid.pdf",
        margin: {
            bottom: 30
        }
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>

pdf.margin.left

Number|String

The left margin. Numbers are considered as pt units.

Default: 0

<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    pdf: {
        fileName: "PropertyGrid.pdf",
        margin: {
            left: 25
        }
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>

pdf.margin.right

Number|String

The right margin. Numbers are considered as pt units.

Default: 0

<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    pdf: {
        fileName: "PropertyGrid.pdf",
        margin: {
            right: 25
        }
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>

pdf.margin.top

Number|String

The top margin. Numbers are considered as pt units.

Default: 0

<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    pdf: {
        fileName: "PropertyGrid.pdf",
        margin: {
            top: 30
        }
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>