I'm using drawing.drawDOM to create a PDF. I have to make a table of contents in the beginning of the PDF. I've got two issues:
- How do I link to another section of the PDF? <a href="#conclusion">Conclusion</a> and then later <a name="conclusion"></a> doesn't seem to work :-/
- How do I figure out on which page a specific part of the document is being rendered? In my TOC I would like to say "Conclusion....page 22".
The Kendo Drawing API does not have a Table of Contents feature and so it cannot create such a complex PDF. I can suggest taking a look at the following thread that is still the current answer: https://www.telerik.com/forums/export-to-pdf-with-table-of-contents.
On knowing what content goes on what page - you can define your own page break selectors so you can force a new page in your own code, so you can count them and put the desired content in the DOM before exporting: https://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#multi-page-pdf-output.