Closed roshan9419 closed 2 years ago
Does this library support online network images? Like, if we just pass the URL of the image and it loads that.
Nope, you'll have to fetch the image yourself. Something like:
const logo = await fetch('/logo.png') .then(res => res.arrayBuffer()) .then(res => new pdf.Image(res))
Thanks, bro!
Does this library support online network images? Like, if we just pass the URL of the image and it loads that.