I opened the attached presentation, removed one portion of text and added another one to its place. When I opened the saved presentation, added portion became underlined even if I didn't set it via code.
Also, the size of added portion looks smaller than size of other portions, even if font size is the
same (22). What could be wrong here?
Here's the code I used:
String presentationPath = "Klinische_Forschung_Senti.pptx";
InputStream stream = new FileInputStream(presentationPath);
Presentation presentation = new Presentation(stream);
ISlide slide = presentation.getSlides().get_Item(0);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(2);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);
IPortion newPortion = new Portion("NewPortion");
Can you check this?