Hi,
When I try to get the italic value of the particular portion in the attached presentation, I get true instead of false, as you can see in the attached screenshot.
Here’s the code I used:
String path = “Test.pptx”;
InputStream inputStream = new FileInputStream(path);
Presentation presentation = new Presentation(inputStream);
inputStream.close();
ISlide slide = presentation.getSlides().get_Item(19);
IShapeCollection shapes = slide.getShapes();
ISmartArt smartArt = (ISmartArt) shapes.get_Item(1);
ISmartArtNode smartArtNode = smartArt.getAllNodes().get_Item(0);
IParagraph paragraph = smartArtNode.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
System.out.println(portion.createPortionFormatEffective().getFontItalic());
Here’s the output:
30 points
true
Can you check this?
Thanks,
Zeljko
Thanks,
Zeljko