Hi,
This issue was fixed with Aspose.Slides for Java 15.10.0, but I’m able to reproduce it again with Aspose.Slides for Java 16.9.0. But now, besides shape height problem, there is also a warning message shown in PowerPoint 2013. I’m also attaching one more file with shape height issue on slide #7, but no warning message. Please see attached screenshots for your reference.
Here’s the code I used to reproduce the issue:
public void test() throws Exception {
String path = “Halifax_VMUG_030811.ppt”;
InputStream inputStream = new FileInputStream(path);
Presentation presentation = new Presentation(inputStream);
inputStream.close();
ISlide slide = presentation.getSlides().get_Item(9);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(2);
IParagraphCollection paragraphs = shape.getTextFrame().getParagraphs();
for (int i = 0; i < paragraphs.getCount(); i++) {
IPortionCollection portions = paragraphs.get_Item(i).getPortions();
IPortion portion = portions.get_Item(0);
if (!portion.getText().isEmpty()) {
portion.setText(“t” + portion.getText());
}
}
presentation.save(“Halifax_VMUG_030811-16.9.0.ppt”, SaveFormat.Ppt);
}
public void test2() throws Exception {
String path = “Leveraging Oracle apps at EMC.ppt”;
InputStream inputStream = new FileInputStream(path);
Presentation presentation = new Presentation(inputStream);
inputStream.close();
ISlide slide = presentation.getSlides().get_Item(6);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(62);
IParagraphCollection paragraphs = shape.getTextFrame().getParagraphs();
for (int i = 0; i < paragraphs.getCount(); i++) {
IPortionCollection portions = paragraphs.get_Item(i).getPortions();
IPortion portion = portions.get_Item(0);
if (!portion.getText().isEmpty()) {
portion.setText(“t” + portion.getText());
}
}
presentation.save(“Leveraging Oracle apps at EMC-16.9.0.ppt”, SaveFormat.Ppt);
}
Can you check this?
Thanks,
Zeljko