Click here to Skip to main content
15,878,048 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I am trying to extract the contents of ODT files for indexing.
Let me elaborate.

The following are the steps i follow to extract the contents of the odt file:

1 - convert the odt file into a temporary zip file.
2 - loop thru the files inside and retrieve the 'content.xml' file.
3 - the actual content of the ODT file resides in an xml element called <text:p>
4 - index the contents retrieved from <text:p>

Please can you give me example of above steps so that i can convert the odt file to text file and then generate pdf

1 solution

Try using the IFilter here :[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900