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

Free Support Forum - aspose.com

Hyperlink tooltip difference in .ppt and .pptx files

Hi,

I have .pptx and .ppt versions of the presentation with just one paragraph which contains hyperlinked text with tooltip. In .pptx file, I'm able to get the tooltip text, but in .ppt file I'm getting null.

Here's the code I use:

@Test
public void testPpt() throws Exception {

String presentationPath = "HyperlinksExternalTest.ppt";

InputStream inputStream = new FileInputStream(presentationPath);

Presentation presentation = new Presentation(inputStream);

inputStream.close();

ISlide slide = presentation.getSlides().get_Item(0);

IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(0);

IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);

IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println("PPT");

System.out.println(portion.getText());

IHyperlink hyperlink = portion.createPortionFormatEffective().getHyperlinkClick();

System.out.println(hyperlink.getTooltip());

}
@Test
public void testPptx() throws Exception {

String presentationPath = "HyperlinksExternalTest.pptx";

InputStream inputStream = new FileInputStream(presentationPath);

Presentation presentation = new Presentation(inputStream);

inputStream.close();

ISlide slide = presentation.getSlides().get_Item(0);

IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(0);

IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);

IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println("PPTX");

System.out.println(portion.getText());

IHyperlink hyperlink = portion.createPortionFormatEffective().getHyperlinkClick();

System.out.println(hyperlink.getTooltip());

}

Here's the output:

PPT
Hyperlink.
null
PPTX
Hyperlink.
Hyperlink. tooltip

I'm using Aspose.Slides for Java 16.9.0.

Can you check this?

Thanks,
Zeljko
Hi Zeljko,

I have observed your comments. I have been able to reproduce the issue. A ticket with ID SLIDESJAVA-35684 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 notified automatically as soon as the issue will be resolved.

We are sorry for your inconvenience,

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


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