InputStream is wordToPDFUtill.class.getClassLoader.getResourceAsStream license word.xml License aposeLic new License aposeLic.setLicense is long old System.currentTimeMillis File file new File pdfPath新建空白pdf FileOutputStream os new FileOutputStream file Document doc new Document wordPath word地址doc.save os SaveFormat.PDF