meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
132 stars 29 forks source link

Saving to SVG file or to string method #115

Closed TiberioG closed 1 year ago

TiberioG commented 3 years ago

Hello, I am unable to find a method to save the SVG object to a file or to export it as a string.

What would you suggest to do if we need to save the parsed svg ?

Thanks in advance

Tiberio

tatarize commented 3 years ago

You can't.

You'd have to write a function to do that, the files don't save back. There is #87 as a desired upgrade here but you get a series of rendered objects which can then be saved but in their modified and rendered form.