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

PDFTemplateDirective

Represents the PDF page template of the TreeList that helps to customize the PDF pages. To define a page template, nest an <ng-template> tag with the kendoTreeListPDFTemplate directive inside <kendo-treelist-pdf>.

The template context provides the following fields:

  • pageNumber—Defines PDF page number.
  • totalPages—Defines the total number of PDF pages.
<kendo-treelist-pdf fileName="Files.pdf" ...>
  <ng-template
    kendoTreeListPDFTemplate
    let-pageNum="pageNum"
    let-totalPages="totalPages">
    <div style="position: absolute; top: 5px; left: 5px;">
      Page {{ pageNum }} of {{ totalPages }}
    </div>
  </ng-template>
</kendo-treelist-pdf>

Selector

[kendoTreeListPDFTemplate]

In this article

Not finding the help you need?