File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Pdf conversion. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Pdf conversion." Watch "Pdf conversion." New topic

Pdf conversion.

Angelino Dolce

Joined: Jul 26, 2005
Posts: 24
Hi all!
I've to solve this problem: There is a server side Java application with a web user interface, that insert and extract ofice documents to and from an oracle DB as blob. The client has requested to transform the doc files to PDF. What is a recommendable and integrable server side product to adapt?
Thank You in advance.
Naveen K Garg
Ranch Hand

Joined: Nov 28, 2005
Posts: 105
Hi Angelino,

You could try iText open source solution to achive this.

Just google it.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
While iText can create PDF files, I think the bigger problem will be reading DOC files. The POI library can help with that, but probably not to the extent you need. If you're on Windows, have a look at WordApi.exe. The best bet may be to use the OpenOffice Java API; OO can open word files, and save to PDF. Thus it should be possible to achieve what you're looking for.

Links to the above-mentioned libraries can be found on the AccessingFileFormats wiki page.
Angelino Dolce

Joined: Jul 26, 2005
Posts: 24
Thank You Ulf!
Yes, this is dhe problem. I need to convert a .doc file to a .pdf file, conserving all; fonts, formats, links ecc. I don't know if there is a library or a product (server side) that can do this at 100%.

I agree. Here's the link:
subject: Pdf conversion.
It's not a secret anymore!