版本: compile group: ‘com.aspose’, name: ‘aspose-slides’, version: ‘21.5’
源文件
image.png (20.2 KB)
转换后 PDF 文件
源文件以及 bullet 符号字体
souce_file_and_fonts.zip (109.7 KB)
版本: compile group: ‘com.aspose’, name: ‘aspose-slides’, version: ‘21.5’
源文件
image.png (20.2 KB)
转换后 PDF 文件
源文件以及 bullet 符号字体
souce_file_and_fonts.zip (109.7 KB)
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);
$ 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
$ 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
...
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.