pythongtksvgrsvg

Get the coords and height/width of a svg group into python


Hi I want to load the groups of a svg-file into several gtk pixbuffs/subpixbufs therefore I need the coordinates and width and height of them

I'm currently just using rsvg and gtk is it possible to get those information with that modules ? Or do I need another module to read out that data from the svg-file?

thanks alot


Solution

  • I found out to simply use RSVG::Handle::get_dimensions_sub(id)