pdf utils skip the first page - access json data in header file
-
Re: Creating Alternate Header after first page using Chrome-PDF
Hi @jan_blaha
I'm trying to access json data in header file for my requirement in that I have used https://playground.jsreport.net/w/anon/TlXn1uBb this logic for skip header on first page
I can not access data in header file due to may be because of {{#each $pdf.pages}} loop Can you please help me for that? Here is the playground https://playground.jsreport.net/w/Heplinesss_17/z~4b62TA in which I have used your logic for skipping header on first page.
Thanks!
-
When you are inside the loop, the context is different - the particular item of the array.
To get to the root context in handlebars, you can use{{@root.xxx}}
The fixed workspace here
https://playground.jsreport.net/w/anon/lmfVMSpZ
-
Awesome! Thanks for the solution