代码如下:
LoadOptions loadOptions = new LoadOptions(); loadOptions.getLanguagePreferences().setDefaultEditingLanguage(EditingLanguage.CHINESE_PRC);
com.aspose.words.Document doc = new com.aspose.words.Document(sourcePath, loadOptions); // word文档
// 支持RTF HTML,OpenDocument, PDF,EPUB, XPS转换
doc.save(os, com.aspose.words.SaveFormat.PDF);
转换后样式异常,和原html不一致,且变成了2页
转换.zip (19.3 KB)