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

Free Support Forum - aspose.com

Wrong external Url (2072)

Hi, I’m having an issue with 2 ppt files where i try to get external url from hyperlink.

Here are code snipets and screenshoots

ppt 1: PrimeraPTDevSuite_h.zip (392.5 KB)
screenshot : PrimeraPTDevSuite_h.PNG (9.8 KB)
Wrong external url from the portion as you an see on the screenshoot

 Presentation presentation = new Presentation("PrimeraPTDevSuite_h.ppt");
ISlideCollection slides = presentation.getSlides();
ISlide slide = slides.get_Item(35);
AutoShape shape = (AutoShape) slide.getShapes().get_Item(1);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(9);
IPortion portion = paragraph.getPortions().get_Item(2);
System.out.println("portion text: " + portion.getText());
IHyperlink hyperlink = portion.getPortionFormat().getEffective().getHyperlinkClick();
System.out.println("External url "+ hyperlink.getExternalUrl());

note: There other hyperlinked portions in the same slide with this problem

ppt2: Sessao8.zip (3.1 MB)
screenshot: Sessao8.PNG (8.3 KB)

Wrong text is returned

Presentation presentation = new Presentation("Sessao8.ppt");
ISlideCollection slides = presentation.getSlides();
ISlide slide = slides.get_Item(44);
AutoShape shape = (AutoShape) slide.getShapes().get_Item(1);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(4);
IPortion portion = paragraph.getPortions().get_Item(1);
System.out.println("portion text: " + portion.getText());
IHyperlink hyperlink = portion.getPortionFormat().getEffective().getHyperlinkClick();
System.out.println("External url "+ hyperlink.getExternalUrl());

Can you please check this out?
Thanks

@Saric,
Thank you for the issue description. I reproduced the errors and received the same results. I have logged the issue in our tracking system with ID SLIDESJAVA-38504. Our development team will investigate the issue. You will be notified when it fixed.

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