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]