Error with jsreport.pdfUtils.removePages
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);
Can someone help on this?
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