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.