• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to Convert word to pdf using java api ??

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to develop an appplication which uploads rtf,word,excel file and i need to convert all formats to pdf.
can anyone help me in how i can write the code using JAVA.IT is very urgent

I have seen jakarta poi (which does the excel java api) and then apache fop or itext library for the pdf creation.

is there any direct library which converts pdf ??
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not aware of a ready-made solution for any of these formats. POI can read XLS, but it's up to the developer to create PDF from that. POI also can read Word documents, but that's reported to be buggy and unsupported, so it may or may not work with the files you have. For RTF, you could write a reader based on the JavaCC parser (which comes with an RTF grammer). All of these would require significant amounts of work.

One other options might be OpenOffice and its Java API, which is largely undocumented from what I understand. A starting point might be this article: http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav_1.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic