table of content page number are always stick with the first PDF page
-
This is from jsreport playground we just add Br tags and this happens
-
hi @mein-Jaan
can you share a playground link with the code? this is better to understand what is going on and what can be the solutions.
-
https://playground.jsreport.net/w/anon/hA41M5eB Here is the link in which I add <br> Tag
And this is the full code
<!--
we render TOC template twice
the first in the main template - this is needed for inner pdf links
the second time it is rendered as merge operation in pdf utils - this is needed to for gettign page numbers in TOC
-->
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
{#child toc @template.recipe=html}
{{#level chapters}}
<div style='page-break-before: always;'></div>
<h1 id="{{id}}">{{title}}</h1>
<!-- pdf utils page item is used for getting page numbers in TOC template -->
{{{pdfAddPageItem id=id}}}
{{/level}}
-
Hello @bjrmatos Here is the link To TOC at the playground that https://playground.jsreport.net/w/anon/XG2u0h4l