Hi,
I’m using Aspose.Slides 22.9, when I change a hyperlink address and save the files as pptx, the text of that hyperlink changes to the new address (instead of keeping the original text). This doesn’t happen when saving as ppt.
IPresentation presentation = com.aspose.slides.PresentationFactory.getInstance().readPresentation("/path/to/presentation/with/hyperlinks.pptx");
for (ISlide slide : presentation.getSlides()) {
for (ITextFrame frame : SlideUtil.getAllTextBoxes(slide)) {
for (IParagraph paragraph : frame.getParagraphs()) {
for (IPortion portion : paragraph.getPortions()) {
portion.getPortionFormat().getHyperlinkManager().setExternalHyperlinkClick("http://www.example.com");
}
}
}
}
presentation.save("/path/to/output.pptx");
Can you please look at this?
I’ve attached input and output files.
input_and_output.7z (42.6 KB)
Thanks