Bug in Aspose.Slides for Java – Wrong Slide Image Export with Superscript

Dear Aspose Support Team,

I hope this message finds you well. We have encountered a bug in the Aspose.Slides for Java library, specifically related to incorrect thumbnail rendering after export when using the calibri font. Below are the details of the issue, along with the necessary information for your review:

Reproduction Steps:

  1. Example presentation with a superscript in Title:
    import.zip (39.0 KB)
    The import.pptx file contains 1 slide where the title contains a superscript.

  2. Used calibri Font:
    calibri.ttf.zip (776.5 KB)

  3. Code triggering the bug:

@Test
public void thumbnailBugReproduction10() throws Exception {
	String importPath = "/path/to/import.pptx";
	String slidesPath = "/path/to/expot-slides";
	String fontPath = "/path/to/fonts/calibri/calibri.ttf";
	var loadOptions = new LoadOptions();

	// load external font
	try (java.io.FileInputStream fis = new java.io.FileInputStream(new File(fontPath))) {
		byte[] fontBytes = fis.readAllBytes();
		loadOptions.getDocumentLevelFontSources()
				.setMemoryFonts(new byte[][] { fontBytes });
	}

	try (var is = new FileInputStream(new File(importPath))) {
		var pres = new Presentation(is, loadOptions);
		for (var slide : pres.getSlides()) {
			slide.getImage(2, 2).save(
					new FileOutputStream(new File(slidesPath + "/slide-" + slide.getSlideNumber() + ".jpg")),
					ImageFormat.Jpeg);
		}
	}
}

Please Change the import/export paths accordingly!

Issue Description:

Environment:

  • Aspose.Slides version: 26.4
  • Java version: 25.0.1
  • Operating Systems: Ubuntu 24

Your prompt attention to this matter is highly appreciated. Please let us know if any additional information is required to investigate and resolve this issue.

Thank you for your assistance.

Best regards,

Justin Voitel
Domino informatics GmbH

@justinvo,
Thank you for reporting the issue. I have reproduced the problem where the superscript text is displayed incorrectly when converting the slide to an image. We apologize for any inconvenience caused.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39820

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you found earlier (filed as SLIDESJAVA-39820) have been resolved in Aspose.Slides for Java 26.5 (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.