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
Post a Comment