This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to Convert word to pdf using java api ?? 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 » Java » Other JSE/JEE APIs
Bookmark "How to Convert word to pdf using java api ??" Watch "How to Convert word to pdf using java api ??" New topic
Author

How to Convert word to pdf using java api ??

Madhu Kaparapu
Ranch Hand

Joined: Jul 04, 2005
Posts: 35
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 ??


Regards,
Madhu Kaparapu.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41083
    
  43
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


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Convert word to pdf using java api ??
 
Similar Threads
java program for pdf file to excel file conversion
Java Api for converting Word document to PDF?
TIFF. DOC, EXCEL to PDF Converter
How to print different type of document types in java ?
Coverting PDF to DOC