srikanth
srikanth

Reputation: 103

Convert Word Document to PDF using Java

I want to convert ms word document to PDF file using POI.jar(read the MS word Content) and Itext.jar(Creat the PDF File).

For Plain text in MS word, I am able to conver into PDF. But I have few images on ms word. I want to put those images on PDF.

Could some please help me out?

Upvotes: 5

Views: 3900

Answers (2)

ktkization
ktkization

Reputation: 11

You lucky man i just stumbled upon JODConverter it uses openoffice to covert through java and its very easy to use.

Upvotes: 1

Maurício Linhares
Maurício Linhares

Reputation: 40333

There isn't such a solution for free, you will have to buy something like Aspose components, but you can also save the Word document as HTML and use any of the available HTML-to-PDF tools to convert it to PDF using Java. One of them is wkhtmltopdf.

Upvotes: 0

Related Questions