We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect font size (761)

Hi,


The attached presentation contains a lot of SmartArt objects. But for some of the, Aspose.Slides returns incorrect font size. As you can see in the attached screenshot, font size in PowerPoint is 43, but I get 1.0 via API.

Here’s the code I use:

String path = “Test.pptx”;

Presentation presentation = new Presentation(path);
ISlide slide = presentation.getSlides().get_Item(4);
ISmartArt smartArt = (ISmartArt) slide.getShapes().get_Item(1);
ISmartArtNodeCollection smartArtNodes = smartArt.getAllNodes();
ISmartArtNode smartArtNode = smartArtNodes.get_Item(1);
IParagraph paragraph = smartArtNode.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
IPortionFormatEffectiveData portionFormat = portion.createPortionFormatEffective();
System.out.println(portionFormat.getFontHeight());

Here’s the output:

60% de cette population est très jeune, elle a moins de 25 ans.
1.0


Can you check this?

Thanks,
Zeljko

Hi Zeljko,

I have worked with presentation file shared by you using Aspose.Slides for Java 17.4 and have been able to observe the issue. A ticket with ID SLIDESJAVA-36389 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,