Hi team,
Could you please advise why whenever we convert pdf file to pptx using aspose.pdf library, filled bullet icons of bullet list are displayed as broken icons in MS Powerpoint?
Screenshot of the PowerPoint screen is below:
image.jpg (93.6 KB)
Even though, icons of round filled bullet get displayed incorrectly, hollow round bullets are displayed correctly despite of having the same font applied (XXXXX+Symbol).
We are using aspose.pdf 24.8, though same happens utilising earlier versions too.
Code snippet:
@Test
void convert_specificPDFToPPT() throws Exception {
try (InputStream inputStream = Objects.requireNonNull(getClass().getResourceAsStream("/Input.pdf"))) {
byte[] pdf = inputStream.readAllBytes();
try (Document srcDoc = new Document(pdf)) {
FileOutputStream fileOutputStream = new FileOutputStream("failing_pptx_file.pptx");
srcDoc.save(fileOutputStream, new PptxSaveOptions());
}
}
}
Loaded PDF file contains following embedded fonts:
Font Name: SymbolMT
Is Embedded: true
Font Name: TimesNewRomanPSMT
Is Embedded: true
Font Name: Wingdings-Regular
Is Embedded: true
Converted PPTX gets following fonts configuration:
Presentation pres = new Presentation("failing_pptx_file.pptx");
for (IFontData font : pres.getFontsManager().getFonts()) {
System.out.println("Font name: " + font.getFontName());
}
# Output
Font name: Arial
Font name: Calibri
Font name: WWQQSQ+Wingdings
Font name: Times New Roman
Font name: IVVGRF+Symbol
PDF can be found in the attachments.
Input.pdf (27.8 KB)