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