aspose-slides-23.5-android.via.java.jar,出现KeyNotFoundException,导致转换失败

使用 aspose-slides-23.5-android.via.java.jar 将一个ppt文档转换为pdf文档,
ppt.save(os, com.aspose.slides.SaveFormat.Pdf)

出现报错:

System.err: class com.aspose.slides.exceptions.KeyNotFoundException: The given key was not present in the dictionary.
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.Collections.Generic.Dictionary.get_Item(Unknown Source:60)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.za.tr(Unknown Source:229)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.za.tr(Unknown Source:20)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.ug.i3.tr(Unknown Source:56)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.qz.tr(Unknown Source:142)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.qz.tr(Unknown Source:17)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.qz.tr(Unknown Source:282)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.qz.tr(Unknown Source:17)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.wr.qz.tr(Unknown Source:250)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.internal.ug.i3.sp(Unknown Source:0)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.hqb.tr(Unknown Source:288)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.hqb.tr(Unknown Source:19)
05-31 13:27:26.789  5290  5367 W System.err: com.aspose.slides.Presentation.tr(Unknown Source:464)

@Ezreal056Q,
感谢您联系支持人员

请共享以下文件和信息:

  • PowerPoint 演示文稿文件
  • 执行转换的操作系统版本
  • 您应用中的 JDK 版本
  1. PowerPoint 文稿在附件中;
  2. 代码,是完全按照API写的:
FileOutputStream os = new FileOutputStream(targetFile);
Locale locale = new Locale("zh", "cn");
Locale.setDefault(locale);
Presentation ppt = new Presentation(sourceFile);
ppt.save(os, com.aspose.slides.SaveFormat.Pdf);
  1. 在HUAWEI harmonyos 3.0上;
  2. JDK 11和JDK1.8均有该问题。

image.png (8.3 KB)
上传文件总是失败

@andrey.potapov 麻烦帮助看下

@Ezreal056Q,
请分享保存到文件存储(Google Drive、Dropbox 或其他存储设备)的演示文稿文件的链接。