File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 19545

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: 39552
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 - updated with new look and Ping home screen widget
wood burning stoves
subject: transform .odt to .txt in java
Similar Threads
find maching files in list
Anyone using OpenOffice "aqua"?
Java And OpenDocument Files
How 2 Convert .odt into .doc in java
Java And OpenDocument Files