之前版本有个很大的BUG,看图:报错截图.png (10.4 KB)
Already registeredParameter name: zipEntry
经常会有这个错误
还请协助一下,非常感谢。
这个演示文稿在最新版的测试下,还是出现了报错。
代码是:
public static String ConvertPPT2PDF(String pptSource) throws IOException,InvalidPdfFileFormatException,OutOfMemoryError,Exception
{
String pdfSource = null;
// 验证License
if (!getLicense()) {
return pdfSource;
}
File pptFile = new File(pptSource);
if (!pptFile.exists()) {
return pdfSource;
}
pdfSource = pptFile.getPath().substring(0, pptFile.getPath().lastIndexOf(".")) + ".pdf";
File pdfFile = new File(pdfSource);// 输出pdf路径
if(pdfFile.exists()) {
pdfFile.delete();
}
FileOutputStream pdfOut = new FileOutputStream(pdfFile);
//将密码设置为null 则可通过异常 判断文件是否加密
LoadOptions loadOptions =new LoadOptions();
loadOptions.setPassword(null);
Presentation pres = new Presentation(pptSource, loadOptions);
pres.save(pdfOut, SaveFormat.Pdf);
pdfOut.close();
pres.dispose();
pres = null;
return pdfSource;
}
演示文稿.zip (8.5 MB)
我参与了演示,并且能够观察到这个问题。 我们的问题跟踪系统中添加了ID SLIDESJAVA-37403的问题,以提供请求的支持。 此主题已与该问题相关联,因此一旦问题得到解决,您可能会收到通知。
你好,目前问题解决有进展了吗?
我很遗憾地分享指出的问题尚未解决,因为最近在我们的问题跟踪系统中添加了问题。实际上,在Aspose.Slides论坛中,选择问题以先到先得的方式进行调查。此外,还为付费企业和优先支持客户提供了调度和解决的首要任务。然后Aspose.Slides正常或免费支持客户问题按先到先得的原则安排和解决。一旦问题得到解决,我将与您分享进一步的信息