wood burning stoves*
The moose likes Other Open Source Projects and the fly likes Apache POI Exception While reading .doc file 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 » Products » Other Open Source Projects
Bookmark "Apache POI Exception While reading .doc file" Watch "Apache POI Exception While reading .doc file" New topic
Author

Apache POI Exception While reading .doc file

Giacomo Chiavolotti
Greenhorn

Joined: May 19, 2013
Posts: 3
Hi all, i'm new here and with Apache POI.

I would like to read a .doc file line by line and create a .pdf with text, table and image retrieved by the doc file. Now I managed to do it but not in order: I have written some code that extract text, table data, and image but I can't determine where those object are in the document.

All this because of if I try to run this code, who allow me to read the document paragraph by paragraph, I obtain a error.



The exception is:



How can i Solve this??

Thanks a lot and sorry for my english.
Olivier Rihoux
Greenhorn

Joined: Jun 03, 2013
Posts: 8
Hello,

Just seems that last paragraph of your table is flagged as : IsIntable but not inside range.gatTable(par).

Turnaround could be the following code :

Giacomo Chiavolotti
Greenhorn

Joined: May 19, 2013
Posts: 3
.....didn't work.. it is my code with a try catch... my god...

thanks anyway
 
Consider Paul's rocket mass heater.
 
subject: Apache POI Exception While reading .doc file
 
Similar Threads
Read the value of checkboxes from word document programatically with java using POI APIs
Apache POI HWPF getFooter() to extract incremental page numbers from document footers
Reading text in a table from word document
java.io.FileNotFoundException
Read the .doc file