Hi,

Andreas Saebjoernsen wrote:

> I want to do server side extraction of document statistics in all document
> types supported by Open Office Writer on a Linux server. The statistics I am
> interested in is the word count, character count and number of pages. Are
> you aware of any way in which this can be achieved using Open Office?

You don't need OOo for that, you can use some XML processing on the
meta.xml stream inside the ODF package file format. Another way would be
 writing some Java code using ODFDOM, I assume.

If you want to use OOo nevertheless: write a Java program that
bootstraps OOo on your server and loads the document (sample code is
available in our SDK). The loaded document has an API to retrieve the
meta data.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to