Aspose.Slides for Java 转换 PDF 样式错误

版本: compile group: ‘com.aspose’, name: ‘aspose-slides’, version: ‘21.5’

源文件
image.png (20.2 KB)

转换后 PDF 文件

  1. 缩进错误
    image.png (143.0 KB)

  2. bullet 符号显示错误
    image.png (144.1 KB)

源文件以及 bullet 符号字体
souce_file_and_fonts.zip (109.7 KB)

@Pu_Du

我已经分享了错误。 您能否分享一下您用来重现此问题的源代码。

    Presentation pres = new Presentation(new FileInputStream("source_file.pptx"));
    PdfOptions options = new PdfOptions();
    options.setDefaultRegularFont("Microsoft YaHei");
    pres.save(new FileOutputStream("converted.pdff"), SaveFormat.Pdf, options);

@Pu_Du

我在我们的问题跟踪系统中创建了一个 ID SLIDESJAVA-38548 的问题,以进一步调查和解决我们最终的问题。 此线程已与该问题相关联,因此您可能会收到通知,问题将得到解决。

@Pu_Du

能否请您分享环境详细信息:
1 : 操作系统名称和版本
2 : jdk版本
3 : Linux 上已安装字体的列表(Linux 下为 fc-list 命令)

  • 系统版本
$ uname -a 
Linux *** 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • jdk 版本
$  java -version
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
  • 字体列表
$ fc-list
...
/usr/share/fonts/cn/Wingdings.ttf: Wingdings:style=Regular
/usr/share/fonts/cn/Wingdings 3.ttf: Wingdings 3:style=Regular,Standard
...

@Pu_Du

感谢你跟我们分享信息。 一旦有任何信息被共享,我们将与您共享更新。

The issues you found earlier (filed as SLIDESJAVA-38548) have been resolved in Aspose.Slides for Java 25.7 (Maven, JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.