How can I convert a Word document to PDF?

前端 未结 11 724
深忆病人
深忆病人 2020-11-28 20:39

How can I convert a Word document to PDF where the document contains various things, such as tables. When trying to use iText, the original document looks different to the c

11条回答
  •  难免孤独
    2020-11-28 21:10

    unoconv, it's a python tool worked in UNIX. While I use Java to invoke the shell in UNIX, it works perfect for me. My source code : UnoconvTool.java. Both JODConverter and unoconv are said to use open office/libre office.

    docx4j/docxreport, POI, PDFBox are good but they are missing some formats in conversion.

提交回复
热议问题