我使用aspose.word for JAVA的版本是18.1,Linux系统 :Ubuntu 14.04.2 LTS;
测试试用的文档如附件所示test word.zip (11.2 KB)
,测试用的代码如下:
Document document = new Document(fileName);
FileOutputStream fos = new FileOutputStream(pdfFile);
FontSettings.getDefaultInstance().setFontsFolder("//usr///fonts", true);
document.save(fos,SaveFormat.PDF);
转换出错截图如图所示:error.png (11.3 KB)
同样的代码和文档,在window下测试没有问题,我选择的字体是宋体,请问是什么原因引起的呢?