You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to merge two pdfs and a png. The use case is to merge pdfs to generate a single report. The library is working perfectly for most of the pdfs coming from different sources except for this one source. I am creating an instance of PdfDocument and calling the embedPage(), drawpage() and drawImage(). All of these methods are working fine and don't return any error. Only when I am calling the save() method, it thrown as error as below: err: { "type": "Error", "message": "Something went wrong during pdf creation Error: Invalid header in flate stream: -1, -1", "stack": Error: Something went wrong during pdf creation Error: Invalid header in flate stream: -1, -1 at PdfGenService.createPdf (/Users/adil/work/orange/report-rebranding/src/pdf-gen/pdfgen.service.ts:368:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at PdfGenController.createPdf (/Users/adil/work/orange/report-rebranding/src/pdf-gen/pdfgen.controller.ts:24:12) }
Is there a way to work around this?
Need quick help on this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to merge two pdfs and a png. The use case is to merge pdfs to generate a single report. The library is working perfectly for most of the pdfs coming from different sources except for this one source. I am creating an instance of PdfDocument and calling the embedPage(), drawpage() and drawImage(). All of these methods are working fine and don't return any error. Only when I am calling the save() method, it thrown as error as below:
err: { "type": "Error", "message": "Something went wrong during pdf creation Error: Invalid header in flate stream: -1, -1", "stack": Error: Something went wrong during pdf creation Error: Invalid header in flate stream: -1, -1 at PdfGenService.createPdf (/Users/adil/work/orange/report-rebranding/src/pdf-gen/pdfgen.service.ts:368:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at PdfGenController.createPdf (/Users/adil/work/orange/report-rebranding/src/pdf-gen/pdfgen.controller.ts:24:12) }
Is there a way to work around this?
Need quick help on this
Beta Was this translation helpful? Give feedback.
All reactions