Reading images of msword document.

How can I read the images and math equations from "msword file" and save those images in a separate folder.Please help!!!Message was edited by: Naren_NegiMessage was edited by: Naren_Negi
[229 byte] By [Naren_Negia] at [2007-11-27 0:40:17]
# 1

> How can I read the images and math equations from

> "msword file" and save those images in a separate

> folder.

How would you recognize a math equation in a word file, and what are you going to do with those?

Otherwise, how about asking a question like:

- how do I open the proprietary Word format in Java?

- how do I find images embedded in those files?

- how do I write an image to disk?

1) Google. Apache POI (which Word support still sucks) e.g. lets you do that. Anyway, I'd suggest using VB or something, it's probably well-suited for tasks like that.

2) Depends on the lib you chose to use. Ask their product support.

3) Look at class ImageIO.

CeciNEstPasUnProgrammeura at 2007-7-11 22:53:01 > top of Java-index,Java Essentials,Java Programming...
# 2

http://jakarta.apache.org/poi/

see unit test of hwpf (http://jakarta.apache.org/poi/hwpf/quick-guide.html)

http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/

http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java?revision=523777&view=markup

java_2006a at 2007-7-11 22:53:02 > top of Java-index,Java Essentials,Java Programming...