SVG is a huge standard, which is based on XML. I have parsed SVG as XML in the past. However, some things are hard.
For example, I would like to know the size of a group. As far as I can tell, this is only possible by recursively stepping through all the children in the group (noting all their transformations) and accumulating their sizes.
I would love to have a library that could do stuff like that for me. Does something like this exist?
In python you have pysvg:
import pysvg.parser
svg = pysvg.parser.parse(<filename>)
print svg.get_width(), svg.get_height()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With