简体   繁体   中英

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?

你幸运的我只是偶然发现JODConverter它使用openoffice来隐藏java并且它非常容易使用。

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM