-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
In a web application I'm using JSPDF to convert the html to pdf. All works fine, except for the images. After a while, I noticed that it adds images that point to a local resource; instead, it does not add images that point to an online resource, and leaves in the place of the image an empty space, as if he expected it but could not load it.
For example: <img src="img/house.jpg"/>
is correctly added. <img src="https://myurl.com/house.jpg"/>
is not correctly added; there is an empty space instead of the image.
P.S. I'm using doc.addHTML().
How can I solve it? Maybe store the image temporarily in local? I tried using addImage() but it is very hard to use, not only because I change the scale factor of pdf, but primarily because the content of the pdf is dynamic, and I do not know what size the images will have or their exact position.