Error with jsreport.pdfUtils.removePages
-
Hi,
I have a postprocess script that removes the trailing white page. It works when I have less than 7 pages. If I have 8 or more, it just renders the first 2 pages.
res.content = await jsreport.pdfUtils.removePages(res.content, req.data.tables.length + 1);
Example: https://playground.jsreport.net/w/marc-pages-onclick/59b4z0Lk
Can someone help on this?
Thanks.
-
Thank you for reporting this and sharing the playground demo.
I've fixed the issue, it will be part of the next release.
You can find the fix here https://github.com/jsreport/jsreport/issues/1085