yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
667 stars 104 forks source link

External SVG Images break the export with Security Errors #7

Closed yGuy closed 7 years ago

yGuy commented 8 years ago

Since canvas.toDataURL can throw a Security error if the canvas was tainted with an image that was loaded from a different origin, the export will fail completely in the case such images exist. We should try/catch that case and continue the export. Missing images are better than no output at all most of the time.