Implement table of contents in PDF Processing component

5 posts, 0 answers
  1. Dragoljub
    Dragoljub avatar
    3 posts
    Member since:
    Nov 2020

    Posted 28 Dec 2020 Link to this post

    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

     

     

  2. Stefan
    Admin
    Stefan avatar
    3004 posts

    Posted 28 Dec 2020 Link to this post

    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/.

  3. Dragoljub
    Dragoljub avatar
    3 posts
    Member since:
    Nov 2020

    Posted 28 Dec 2020 in reply to Stefan Link to this post

    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?

     

  4. Dragoljub
    Dragoljub avatar
    3 posts
    Member since:
    Nov 2020

    Posted 28 Dec 2020 Link to this post

    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

     

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2206 posts

    Posted 30 Dec 2020 Link to this post

    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/.

Back to Top