The sillysvgrenderer only supports paths, which makes it more or less useless.
Please add support for proper SVG files.
Any updates on this?
+1
I found this method doc.addSVG but give me to many errors:
TypeError: Cannot read property 'getAttribute' of undefined at Object.jsPDFAPI.addSVG
are there any plans for increasing the capabilities of sillysvgrenderer?
SVG support is now in the master branch :) Documentation to follow.
Hello,
Could you provide links to examples and test cases? Looking through the source code, it appears that the code you committed on Sep 30 is a fork of Canvg with a few modifications to make it work with jsPDF.
I managed to get the canvg binding to run based on the one example I found in examples/canvg_context2d/bar_graph_with_text_and_lines.html, but it renders incorrectly on my SVG image that contains multiple embedded bitmap images. When I point canvg to a regular Canvas element instead of jsPDF, my image renders correctly, making me suspect that the problem lies somewhere in jsPDF's context2d API.
Thanks for maintaining this otherwise excellent module!
Most helpful comment
Hello,
Could you provide links to examples and test cases? Looking through the source code, it appears that the code you committed on Sep 30 is a fork of Canvg with a few modifications to make it work with jsPDF.
I managed to get the canvg binding to run based on the one example I found in examples/canvg_context2d/bar_graph_with_text_and_lines.html, but it renders incorrectly on my SVG image that contains multiple embedded bitmap images. When I point canvg to a regular Canvas element instead of jsPDF, my image renders correctly, making me suspect that the problem lies somewhere in jsPDF's context2d API.
Thanks for maintaining this otherwise excellent module!