Hello everyone,
I'm encountering a specific error when generating reports, only in certain PDF files. While most PDFs are generated successfully, some of them trigger an error. The error message is as follows:
Report "main" render failed.
Error while executing pdf-utils operations
(because) cannot read properties of undefined (reading 'map')
TypeError: Cannot read properties of undefined (reading 'map')
at collectPages (/app/node_modules/@jsreport/pdfjs/lib/documentBase.js:4:57)
I've attached a playground link where you can reproduce the issue: https://playground.jsreport.net/w/ildar-khasanov/uBqD~jnn
Your assistance in resolving this matter would be greatly appreciated.
Thank you in advance!