jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

How to add SVG from path?

Open focussing opened this issue 8 years ago • 2 comments

Maybe silly question... I use doc.addSvg(svgPath, imgX, imgY, imgWidth, imgHeight); but the addSvg expects the SVG data. How can I do that?

Please help...

focussing avatar Jun 06 '18 14:06 focussing

Well you have to load the file. You could use e.g.

jsPDFAPI.loadImageFile = function (path, sync, callback)

But you should figure it out...

Uzlopak avatar Jun 06 '18 14:06 Uzlopak

@focussing were you able to find solution for adding SVG with path ?

viraj4422 avatar Jan 29 '19 14:01 viraj4422