Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

insertimagestonodeserverthroughpdfkit

I am working to generate PDFs through PDF kit on node server I can only able to add one image after uploading it on server.

I used the forEach loop to iterate over multiple files array to put multiple images in a single PDF.

However, I put doc.end() after the forEach loop, got error Write after end but if I moved it in forEach two PDF files were made. Here is the code:

Comments