我在尋找到docx
文件轉換爲Java中pdf
的最佳方式,這是我已經試過:如何.docx文件轉換爲pdf在Java中
File wordFile = new File("wordFile.docx"), target = new File("target.pdf");
IConverter converter;
Future<Boolean> conversion = converter.convert(wordFile)
.as(DocumentType.MS_WORD)
.to(target)
.as(DocumentType.PDF)
.prioritizeWith(1000) // optional
.schedule();
的問題是,我在程序中找不到IConverter類...
你可以給我鏈接下載documents4j jar文件嗎? –
我已經用所需的信息編輯了我的答案。 –
這是什麼:「DocumentType.MS_WORD」和「DocumentType.PDF」它不起作用 –