This is a migrated thread and some comments may be shown as answers.

Implement table of contents in PDF Processing component

4 Answers 382 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dragoljub
Top achievements
Rank 1
Dragoljub asked on 28 Dec 2020, 10:13 AM

Hi,

I have to print the component that has simple table of contents. You can see the example on StackBlitz.

When PDF is generated links do not lead to corresponding sections inside PDF, they lead to external links.

What would be preferred solution to fix this so that links lead to PDF pages/sections?

Thanks

 

 

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Dec 2020, 12:51 PM

Hello, Dragoljub,

I can suggest checking the following forum post on the same subject:

https://www.telerik.com/forums/table-of-contents-page-detection-on-kendo-react-pdf-export

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Dragoljub
Top achievements
Rank 1
answered on 28 Dec 2020, 03:58 PM

Hi Stefan,

That's actually not what I need. I have static content, and I don't need to show page numbers in the TOC. The only requirement is that when component is exported to PDF, clicking on the item in the TOC leads to a section in the PDF document.

If you can take another look at my StackBlitz example, you can see that I have three static TOC items, and three section in the component. When you export component to the PDF, clicking on the TOC item (eg. Section 1) leads to an external link (localhost://...) instead of leading to the corresponding PDF document section.

What would I like to accomplish -> when component is exported to PDF via Chrome's print to PDF, clicking on the TOC item, leads to the PDF document section. Can Kendo PDF replicate that?

 

0
Dragoljub
Top achievements
Rank 1
answered on 29 Dec 2020, 02:46 AM

I've attached both PDF exported using Kendo's PDF tool and Chrome print to PDF, to better illustrate the behavior when clicking on TOC item (eg. Section 2).

 

https://drive.google.com/drive/folders/1B9YUYCy9oLogt2Zpr7rTcy_6hV0xJZ7F?usp=sharing

 

0
Vladimir Iliev
Telerik team
answered on 30 Dec 2020, 02:23 PM

Hi Dragoljub,

As mentioned in the linked forum post local links are currently not supported by our PDF export. However I would suggest to share your idea at our Feedback Portal. We constantly evaluate ideas from the portal and the best ones are included in next Kendo React releases.

- https://feedback.telerik.com/kendo-react-ui 

Regards,
Vladimir Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Dragoljub
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Dragoljub
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or