Home:ALL Converter>How to import an existing svg with svgwrite - Python

How to import an existing svg with svgwrite - Python

Ask Time:2016-11-25T03:47:15         Author:Chili

Json Formatter

I need to import an existing svg picture and add elements like circle and square on it. My file is 'test.svg' so i tryed
dwg = svgwrite.Drawing('test.svg')
but it create a new svg file without anything. I use the python lib svgwrite, do you have any idea for me?
Thank you, and sorry for my english... I do my best!

Author:Chili,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40793649/how-to-import-an-existing-svg-with-svgwrite-python
yy