Report render failed: Invalid PDF: startxref not found



  • Hi sir,

    When i try to render PDF report ,initially it throw like this .What do you mean by this error?

    Logs is--------
    timestamp,message

    1643908252880,"2022-02-03T17:10:52.880Z - debug: Converting with chrome HeadlessChrome/93.0.4577.82 using chrome-pool strategy rootId=v3voveyupuh7w0u, id=jat1wck01wviwtj"
    1643908252980,"2022-02-03T17:10:52.980Z - debug: Page request: GET (document) file:///tmp/jsreport/autocleanup/47a7d9a5-3120-4a11-87e7-0fe3ca9fcc41-chrome-pdf.html rootId=v3voveyupuh7w0u, id=jat1wck01wviwtj"
    1643908252980,"2022-02-03T17:10:52.980Z - debug: Page request finished: GET (document) file:///tmp/jsreport/autocleanup/47a7d9a5-3120-4a11-87e7-0fe3ca9fcc41-chrome-pdf.html rootId=v3voveyupuh7w0u, id=jat1wck01wviwtj"
    1643908253081,"2022-02-03T17:10:53.081Z - debug: Running chrome with params {""printBackground"":true,""marginTop"":""1cm"",""marginRight"":""1cm"",""marginBottom"":""1cm"",""marginLeft"":""1cm"",""displayHeaderFooter"":true,""footerTemplate"":""..."",""headerTemplate"":""..."",""landscape"":false,""timeout"":600000,""margin"":{""top"":""1cm"",""right"":""1cm"",""bottom"":""1cm"",""left"":""1cm""}} rootId=v3voveyupuh7w0u, id=jat1wck01wviwtj"
    1643908253475,2022-02-03T17:10:53.475Z - error: Report render failed: Invalid PDF: startxref not found Error: Invalid PDF: startxref not found
    1643908253475, at Parser.parse (/app/node_modules/@jsreport/pdfjs/lib/parser/parser.js:16:13)
    1643908253475, at new ExternalDocument (/app/node_modules/@jsreport/pdfjs/lib/external.js:9:12)
    1643908253475, at module.exports (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/utils/addPages.js:4:22)
    1643908253475, at Object.append (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/utils/pdfManipulator.js:32:35)
    1643908253475, at Object.append (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/proxyExtend.js:25:25)
    1643908253475, at Object.base.apply (/app/node_modules/vm2/lib/contextify.js:644:32)
    1643908253475, at afterRender (sandbox.js:92:47)
    1643908253475," at processTicksAndRejections (node:internal/process/task_queues:96:5) rootId=v3voveyupuh7w0u, id=v3voveyupuh7w0u"
    1643908253481,2022-02-03T17:10:53.481Z - error: Async report render failed 61fc0c9a341ea35896430bfe: Error: Invalid PDF: startxref not found
    1643908253481, at Parser.parse (/app/node_modules/@jsreport/pdfjs/lib/parser/parser.js:16:13)
    1643908253481, at new ExternalDocument (/app/node_modules/@jsreport/pdfjs/lib/external.js:9:12)
    1643908253481, at module.exports (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/utils/addPages.js:4:22)
    1643908253481, at Object.append (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/utils/pdfManipulator.js:32:35)
    1643908253481, at Object.append (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/proxyExtend.js:25:25)
    1643908253481, at Object.base.apply (/app/node_modules/vm2/lib/contextify.js:644:32)
    1643908253481, at afterRender (sandbox.js:92:47)
    1643908253481, at processTicksAndRejections (node:internal/process/task_queues:96:5)



  • Are you able to replicate the problem in the playground?



  • This post is deleted!

Log in to reply
 

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