How do I create a PDF export page template that has both header and footer?

1 Answer 94 Views
PDF Processing
Matt
Top achievements
Rank 1
Matt asked on 08 Jun 2023, 08:18 AM
I am creating the functionality to export some data in a PDF using Kendo react pdf generator. I see that with the pageTemplate prop I can pass in a component that is inserted to each page BEFORE the output is produced, this makes it useful to create headers, however I can't find a way to create footers for each page.

1 Answer, 1 is accepted

Sort by
1
Accepted
Vessy
Telerik team
answered on 08 Jun 2023, 02:01 PM

Hello, Matt,

You can add both a header and a footer to the exported pdf via PageTemplate, you will only need to position the passed elements differently.

For example, you can have a similar setup:

Regards,
Vessy
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
PDF Processing
Asked by
Matt
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or