Unable to open hyperlink in new tab.
creating hyperlink for Presentation(Slides) using below code :
IPortion link = new Portion(“Google”);
link.PortionFormat.AsIHyperlinkContainer.HyperlinkManager.SetExternalHyperlinkClick(“google.com/”);
converting Presentation(Slides) to PDF using below code :
MemoryStream exportStream = new MemoryStream();
presentation.Save(exportStream, saveFormat);
Please let me know how can I create hyperlink in Presentation to open in new tab or convert ppt to pdf which open all hyperlink in new tab.
@dhamo2110,
Welcome to our community! Thank you for the query. You can add hyperlinks to presentations as below:
portion.PortionFormat.HyperlinkClick = new Hyperlink("https://www.google.com/");
portion.PortionFormat.HyperlinkClick.Tooltip = "Google Search";
More examples: Manage Hyperlinks
API Reference: Hyperlink Class
in browser hyperlink is still not opening in new tab with suggested code, it is still opening in same tab where pdf is open.
@dhamo2110,
To investigate this point, could you share a presentation file that PowerPoint converts to PDF format so that the link opens in a new tab, please?