Using apose.slides for java version 21.5 I am getting exception:
Exception in thread “main” class com.aspose.slides.exceptions.InvalidOperationException: Color is not resolved yet.
com.aspose.slides.gl.do(Unknown Source)
com.aspose.slides.nn.char(Unknown Source)
com.aspose.slides.nn.getSolidFillColor(Unknown Source)
Code snippet to reproduce it:
License license = new License();
license.setLicense(new ByteArrayInputStream(LICENSE_INFO.getBytes()));
Presentation presentation = new Presentation( inputFileName);
ISlide testSlide = presentation.getSlides().get_Item(0);
IAutoShape autoShape = (IAutoShape)testSlide.getShapes().get_Item(0);
IParagraph paragraph = autoShape.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
Color color = portion.getPortionFormat().getEffective().getUnderlineFillFormat().getSolidFillColor();
file_to_reproduce.zip (222.1 KB)