Hi,
I switched to Aspose.Slides for Java 16.4.0, but there’s still an shadow issue when I manipulate the text in the presentation. Please see the screenshot.
Here’s the code I use:
String presentationPath = “foro_barcelona_cohesion_01.pptx”;
InputStream inputStream = new FileInputStream(presentationPath);
Presentation presentation = new Presentation(inputStream);
inputStream.close();
ISlide slide = presentation.getSlides().get_Item(1);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(1);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(2);
IPortionCollection portions = paragraph.getPortions();
IPortion portion = portions.get_Item(0);
System.out.println(portion.getText());
IPortionFormatEffectiveData effectiveData = portion
.createPortionFormatEffective();
// Make sure there’s no shadow effect applied on the portion
System.out.println(effectiveData.getEffectFormat()
.getInnerShadowEffect() == null);
System.out.println(effectiveData.getEffectFormat()
.getOuterShadowEffect() == null);
portions.clear();
IPortion newPortion = new Portion(“New Portion”);
portions.add(newPortion);
presentation
.save(“foro_barcelona_cohesion_01-aspose.pptx”,
SaveFormat.Pptx);
Can you check this?
Thanks,
Zeljko