jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

How to add images from a web url?

Open Abuitime opened this issue 9 years ago • 1 comments

How to add images from a web url?

For example url = 'http://www.w3schools.com/css/trolltunga.jpg'

Thank you

Abuitime avatar Jan 25 '17 19:01 Abuitime

This is not a jsPDF issue. You try to load a file from a different server. You need to allow the browser to load data from a different server by sending the right HTTP-headers. I think the correct one is Access-Control-Allow-Origin

Check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

@MrRio Should be closed ;)

Uzlopak avatar Mar 16 '17 04:03 Uzlopak