1.在对license.xml文件进行验证的时候,总是失败。转化后的PDF文档上面总是显示 权限评估的水印提示,后仔细查看代码后,发现使用不同的aspose jar包进行文档转化的时候,每个包下面都有自己的License类,原来是类使用错误了。
public static boolean getLicense() {
boolean result = false;
try {
InputStream is = FileChangeUtils.class.getClassLoader().getResourceAsStream("license.xml");
//显示标明引用的License属于word包下的
com.aspose.words.License aposeLic = new License();
aposeLic.setLicense(is);
result = true;
} catch (Exception e) {
e.printStackTrace();
}
return result;
}