how to dynamically count pageNumers in script for remove the pages with no data
-
Re: How to Hide page appended with pdfutils when data is null on that page
Hi @jan_blaha for this demo, if we have dynamic pages coming in then how can we count the dynamic page numbers in the script. when there is no
summaryText
in the data that page should hide but we are not sure that on which page number the summary page will be display because we have dynamic page above prepended.https://playground.jsreport.net/w/happypatel20/sofl~XKN
Thanks!
-
You can use
jsreport.pdfUtils.parse
in the script to count the pages in a particular buffer.
https://playground.jsreport.net/w/admin/UpVVJcAk