Pdfkit: Need to download image from a url not from a file or buffer

Created on 18 Apr 2016  路  1Comment  路  Source: foliojs/pdfkit

I need to render dynamic image from a url in pdf file

>All comments

This is not built into PDFKit, but you can do it yourself fairly easily. Make the AJAX request with xhr.responseType = 'arraybuffer', then pass xhr.response to doc.image.

Was this page helpful?
0 / 5 - 0 ratings