• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

converting excel and pdf files to java objects

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i have a requirement where i need to convert excel and pdf files to java objects just like converting xml files to java objects using xml parsing methods.is this possible. if so plz give the code or atleast the api
Thanks
Kiranmanohar
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kiran:
take a look at iText for java-PDF conversions.
For Excel, if you are on Windows, probably the best way is to create an ODBC driver to the Excel file (yes, you can do that...) and read the document through the JDBC-ODBC bridge. if you cannot do that, then look at the Jarkata POI API.
 
kiran manohar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi joel,
thanks for the links. but the pdf to java is based on servlets. cant i use java api instead of servlets in iText.
Regards
Kiranmanohar
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kiran,
iText ccan be used withoud servlets as well, u should go through their docs/tutorial. Here is a link for sample program http://www.lowagie.com/iText/examples/Chap0101.java
 
kiran manohar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dwivedi,
thanks for the suggestions.its working great. i have another doubt , is it possible to convert java objects to pdf and pdf to java objects or am i asking too much .
regards
kiranmanohar
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic