how to convert doc,docx files to pdf in java programatically
问题 I am able to generate pdf from docx file using docx4j.But i need to convert doc file to pdf including images and tables. Is there any way to convert doc to docx in java . or (doc to pdf)? 回答1: docx4j contains org.docx4j.convert.in.Doc, which uses POI to read the .doc, but it is a proof of concept, not production ready code. Last I checked, there were limits to POI's HWPF parsing of a binary .doc. Further to mqchen's comment, you can use LibreOffice or OpenOffice to convert doc to docx. But if