Error while executing pdf-utils operations. Cannot read properties of undefined (reading '2')



  • when i try to render a report following error occurs. Can you help me understand the reason for this issue.
    Error while executing pdf-utils operations. Cannot read properties of undefined (reading '2')
    Error: Error while executing pdf-utils operations. Cannot read properties of undefined (reading '2')
    at module.exports (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\shared\createError.js:10:13)
    at WorkerReporter.createError (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\shared\reporter.js:47:12)
    at AsyncFunction.<anonymous> (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\worker.js:191:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ListenerCollection.fire (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\shared\listenerCollection.js:157:21)
    at async afterRender (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\worker\render\render.js:104:5)
    at async WorkerReporter._render (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\worker\render\render.js:152:7)
    at async F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\worker\reporter.js:177:19
    at async Domain.<anonymous> (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\advanced-workers\lib\workerHandler.js:141:19)
    caused by: TypeError: Cannot read properties of undefined (reading '2')
    at new EmbeddedPdf (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\utils\EmbeddedPage.js:13:26)
    at Object.module.exports.mergePages (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\utils\mergePdfs.js:126:18)
    at Object.merge (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\utils\pdfManipulator.js:52:41)
    at module.exports (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\pdfProcessing.js:118:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async AsyncFunction.<anonymous> (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-pdf-utils\lib\worker.js:176:21)
    at async ListenerCollection.fire (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\shared\listenerCollection.js:157:21)
    at async afterRender (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\worker\render\render.js:104:5)
    at async WorkerReporter._render (F:\CodeFrezz\April2022_Code_Freeze\jsReport\node_modules@jsreport\jsreport-core\lib\worker\render\render.js:152:7)



  • Please try to replicate the issue in the playground.
    https://playground.jsreport.net/


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.