19 Jul
2011
19 Jul
'11
10:57 p.m.
2011/7/19 mahendra1 <mahendra.gajera@...2640...>:
How i get each parameter of gchar const *svgd = path->attribute("d"); here i parse with above function but gives screen coordinate instead of the svg file coordinate.
The code you wrote gives you the coordinates written in the SVG file. The coordinates on the rulers are inverted. It's a long standing bug. https://bugs.launchpad.net/inkscape/+bug/170049
If you want the ruler coordinates, you can use SPDesktop's doc2dt method to obtain the document-to-desktop transformation, and multiply the path vector by this.
Regards, Krzysztof