I'm trying to generate a pdf in javascript using html2pdf that I installed using npm.
The problem is that it will not show my images that comes from an url in my pdf. Here is my code:
And here is a sandbox showing the issue: https://codesandbox.io/s/html2pdf-not-loading-image-gvmx0u
As you can see when you click on "export in pdf" the image hard coded in the content variable didn't get into the file..
The result is a pdf file with blank spaces instead of images. Does anyone know how to get my images into the pdf ? Is there a better library in js to build pdf from html ?