5

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?

James P.
  • 19,313
  • 27
  • 97
  • 155
srikanth
  • 103
  • 3
  • 8

2 Answers2

1

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

Lucifer
  • 29,392
  • 25
  • 90
  • 143
ktkization
  • 11
  • 1
0

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.

MaurĂ­cio Linhares
  • 39,901
  • 14
  • 121
  • 158