One more question.. I found this method getLocation() and getLocationOnScreen()
Do these give the coordinates of the objects on the screen alone or in the entire document? The doubt i have is what about objects that are not in the current screen space and have to be scrolled down to be seen? Will we get the relative positions of these objects as well? Thanks, Shreyas gans92 wrote: > > Hi Frank , PL, > > Thanks a lot for your responses.. > > Will check out the guide. But Frank, I just wanted to know whether there > are api to retrieve to coordinates directly, or we will have to calculate > it ourselves? > > Thanks again, > > Regards, > Shreyas > > > Frank Meies wrote: >> >> Hi Shreyas, >> >> On 12/08/08 11:35, Philipp Lohmann wrote: >>> Hi, >>> >>> please direct writer questions to [EMAIL PROTECTED] >>> >>> Shreyas Ganesh wrote: >>>> Hi, >>>> I have a word document which I have converted to ODT format, using >>>> converter >>>> api (jodconverter). >>>> I want to retrieve the text, from content.xml and also the positional >>>> information of the different words in the document. >>>> I am able to retrieve the text but the coordinates of the words are not >>>> directly available. >>>> >>>> I do see that svg information gives me some positional information, >>>> but I do >>>> not see it in all documents. Could you please explain why? >>> >>> ODT does not contain any text positions. The flow text gets formatted >>> relative to the output device that it is supposed to be output to. >>> >>> SVG on the other hand is a drawing format, not a document format; it >>> contains positional information for all graphical elements contained, >>> including text. >>> >>>> Also I heard that the x and y coordinates of various keywords in the >>>> odt >>>> document could be retrieved from the rendering engine. I wanted to >>>> know how >>>> to get started on this. >>>> Could you please point me to some links on how to do this? >> >> well, the only way to do so is to use the Accessibility UNO API to >> retrieve the screen positions of the various layout objects. >> >> Please have a look at the very detailed description in the OOo >> Development Guide: >> >> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Accessibility/Accessibility >> >> Hope this helps, >> >> Frank >> >> -- >> Frank Meies (fme) - Co-Lead OpenOffice.org Writer >> OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Re%3A--gsl-dev--How-to-get-the-text-coordinates-information-%28x%2Cy%29-from-odt-file-tp20892950p20909198.html Sent from the openoffice - sw dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
