Can pdf kit save images from a url?
node.js, pdfkit
Solution
PDFKit now supports passing buffers to the `doc.image` method instead of a filename. See this commit. So you could do as the other answer suggests, and download the image from the URL yourself, and then pass the buffer directly to PDFKit instead of saving it to a file first.
Problem
I have a node.js application in which I'm using pdfkit to generate pdf documents. I want to be able to include images from a url in the pdf. I cant save the image to the file system because my runtime environment is read only and pdf kit seems to find the images to embed from a file system directory. Is there a way I can use an url in pdf kit to embed an image? Here. This guy modified the pdfkit to include that functionality.