New to Kendo UI for AngularStart 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.
html
<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
Selector
Not finding the help you need?
Contact Support