How to interpret/retrieve coordinates from svg file?
gans92 <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am not sure if I am posting this question on the right forum. Would appreciate of you direct me to the right forum. Here is my problem: I have a pdf document which I have converted to svg format. I wish to retireve the text along with the bounding rectangular coordinates of each word in the document. My svg file has x,y, coordinate informataion as a transformation matrix. Here is an entry: <text transform="matrix(1 0 0 -1 66 649.44)"><tspan x="0,6.145,8.2317,10.318,12. 405,15.002,20.637" y="0" class="ps01 ps10 ps25">Sample text</tspan></text> I am not able to understand how to get the 4 rectangular (x,y) coordinates from this. Following are my queries: a) Is it possible to extract bounding rectangular coordinates from svg files? b) Are there any api to retrieve this information, given a text to search? c) Could you please point me to links on how I could interpret these coordinates? Thanks in advance, Shreyas -- View this message in context: http://www.nabble.com/How-to-interpret-retrieve-coordinates-from-svg-file--tp20950152p20950152.html Sent from the Mozilla - SVG mailing list archive at Nabble.com.