Rendering the TOC on page x



  • Hi,

    We are successfully using this example to generate a TOC for our report: https://playground.jsreport.net/w/admin/akYBA4rS
    However, we have the requirement of generating a cover, introductory,... page before the TOC.
    Moving the TOC generation code in the main document is easy enough, but I fail to understand how we can instruct the merge operation to do the TOC merge on page x instead of the first page.
    Is there a way to achieve this? Thanks in advance.


  • administrators

    hi!

    we have our stock report example rendering cover on first page and TOC on next page, you can analyze how that is done there. check the order of pdf-utils operations and the logic of the helpers in toc template, there is some logic there to keep the page numbers in the toc the way we want (basically skipping cover, toc from page counting)


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.