File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes reading pdf's table problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "reading pdf Watch "reading pdf New topic
Author

reading pdf's table problem

mike mimmis
Ranch Hand

Joined: Feb 11, 2011
Posts: 57

Hi ranchers,

I am developing an application with servlets and jsp and database is MYSQL. I want to insert data into mysql database. The data comes from an pdf . I am able to read pdf using itext but the problem is " when I was reading the pdf whole page is reading which is not required. I need only table data which present on pdf. i.e, pdf contains one table which contains data in column and row wise. that data i have to read and insert it into mysql database." Any suggestions or alternative ways to solve this problem . Plase reply me as soon as poosible..

Thanks and regards,

mike...
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
That's going to be hard. PDFs (and PDF APIs) are not really designed to make this kind of selective access possible. That said, check out the http://java.net/projects/pdf-renderer/ library; it can display PDFs, so obviously it has code in it somewhere that can handle tables.
mike mimmis
Ranch Hand

Joined: Feb 11, 2011
Posts: 57

Thanks for reply,

I have gone through your link but I did n't get anything. give me any idea to achieve this...

Thanks and regards,

mike...
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
You can download the source code of that library. As I said, it can display PDFs (including tables), so it must have code somewhere to handle tables in PDFs. Where that is, I have no idea. You will likely have to spend a fair amount of time understanding the source code before it becomes obvious what needs to be done.

If time is of the essence you may wish to look into commercial APIs instead (like Aspose).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading pdf's table problem
 
Similar Threads
interview question
Storing in BLOC column.
RTF to PDF Conversion
How to uplaod excel data into mysql data base in struts..?
problem with bulk update and auto_increment