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

Free Support Forum - aspose.com

Text Portion Disappears and Formatting Changes when Saving PPT to HTML

file : editSource.ppt.zip (107.8 KB)
picture : pic.png (271.6 KB)

Hi,
I’m having issue with this presentation, I’m trying to add new portion with new text and set hyperlink on it. When i save it as html that portion disappear and and other formatting on that slide is changed, see the picture.
Can you please check this out?

code:
String presentationPath = “editSource.ppt”;
Presentation presentation = new Presentation(presentationPath);
AutoShape shape = (AutoShape) presentation.getSlides().get_Item(0).getShapes().get_Item(1);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);
IPortionCollection portions = paragraph.getPortions();
portions.clear();
IPortion portion = new Portion(“New Portion”);
portion.getPortionFormat().setHyperlinkClick(new Hyperlink(“www.google.com”));
portions.add(portion);
presentation.save(“htmleditSource.html”,
SaveFormat.Html);

Thanks,
Zeljko.

@Zeljko,

I have worked with the presentation file share by you and have been able to observe the issue specified. An issue with ID SLIDESJAVA-37316 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

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