We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Portion font changed


When I open the attached presentation and remove the second portion which contains “’” character only, then create a new portion with the same character and insert it back in the same place, font of that portion changes.
In the original presentation it was “Times”, but in the saved one it changed to “Times New Roman”.

Here’s the code I used:

String filePath = “apostrophe.ppt”;

Presentation pres = new Presentation(filePath);

Slide slide = pres.getSlides().get_Item(0);
Shape shape = slide.getShapes().get_Item(0);
TextFrame textFrame = shape.getTextFrame();
Paragraph paragraph = textFrame.getParagraphs().get_Item(0);
Portion portion = paragraph.getPortions().get_Item(1);

Portion newPortion = new Portion("’");
newPortion.setFontHeight((short) 44);

paragraph.getPortions().insert(1, newPortion);
pres.save(“apostrophe-result.ppt”, SaveFormat.Ppt);

Can you check this?

Hi Zeljko,

Thank you for posting.

I have observed your requirements and worked with the presentation file shared by you. I have been able to reproduce the issue. A ticket with ID SLIDESJAVA-35117 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-35117) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan