I am using openoffice sdk to get all info from doc file, what I need now is to be able to extract all images in a doc file and save them as images png or gif.
I am using Java, Is there any working example?
thanks;
I am using openoffice sdk to get all info from doc file, what I need now is to be able to extract all images in a doc file and save them as images png or gif.
I am using Java, Is there any working example?
thanks;
Use Apache POI.
A short intro is given here http://poi.apache.org/hwpf/quick-guide.html
library is packed with examples.
Here it is example how to extract images from MS Word/OpenOffice documents. It is written in C# but it trivial to convert it to Java.
link: http://blog-of-darius.blogspot.com/2011/03/extract-images-from-word-openoffice.html
Updated: I converted code to Java