This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes transform .odt to .txt in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "transform .odt to .txt in java" Watch "transform .odt to .txt in java" New topic

transform .odt to .txt in java

Eduardo Ewerton

Joined: Jun 17, 2010
Posts: 2
Hello guys... i'm getting in java, and i have a litle problem.
I have to trasnform files .odt in files .txt in java.
If somebody have any idea... please post here!!

thank you all!
Rob Spoor

Joined: Oct 27, 2005
Posts: 19651

You can start in server mode, then call its methods from Java. Check out the OOo documentation and tutorials on how to.

How To Ask Questions How To Answer Questions
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41073
ODF files are ZIP files that contain various XML files; the actual content is in "content.xml". If the text is all you're interested in, unzip the file, parse the XML, and extract the pieces you're interested in (looking at it, it should be pretty obvious which ones those are).

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: transform .odt to .txt in java
Similar Threads
Java And OpenDocument Files
Anyone using OpenOffice "aqua"?
How 2 Convert .odt into .doc in java
find maching files in list
Java And OpenDocument Files