How to Navigate between Presentation Slides with Aspose.Slides for Java?

Hi Aspose Team,
I want to create an index page slide for my application in PPT so i want to write the code for navigation from index page slide (hyperlink) to particular slide.
Kindly help me for some sample code for this.

Regards,
Manikandan

@manikandan1234,
Thank you for posting the question.

To add a link from a presentation slide to another slide, you should use the IHyperlinkManager. setInternalHyperlinkClick method. The following code example shows you how to do this:

Presentation pres = new Presentation();
try {
    ISlide firstSlide = pres.getSlides().get_Item(0);
    ISlide secondSlide = pres.getSlides().addEmptySlide(firstSlide.getLayoutSlide());

    IAutoShape contentTable = firstSlide.getShapes().addAutoShape(ShapeType.Rectangle, 40, 40, 300, 100);
    contentTable.getFillFormat().setFillType(FillType.NoFill);
    contentTable.getLineFormat().getFillFormat().setFillType(FillType.NoFill);
    contentTable.getTextFrame().getParagraphs().clear();

    Paragraph paragraph = new Paragraph();
    paragraph.getParagraphFormat().getDefaultPortionFormat().getFillFormat().setFillType(FillType.Solid);
    paragraph.getParagraphFormat().getDefaultPortionFormat().getFillFormat().getSolidFillColor().setColor(Color.BLACK);
    paragraph.setText("Title of slide 2 .......... ");

    Portion linkPortion = new Portion();
    linkPortion.setText("Page 2");
    linkPortion.getPortionFormat().getHyperlinkManager().setInternalHyperlinkClick(secondSlide);

    paragraph.getPortions().add(linkPortion);
    contentTable.getTextFrame().getParagraphs().add(paragraph);

    pres.save("out.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}

Documents: Manage Hyperlinks