Posted by a ceTe Software moderator
Hello,
Yes, you can load a URL when a PDF document loads in the PDF viewer/Reader. You will need to add the document level JavaScript to the Document using DynamicPDF API. Below is the code sample.
Document document = new Document();
Page page = new Page(PageSize.Letter);
document.Pages.Add(page);
document.JavaScripts.Add(new DocumentJavaScript("URL", "app.launchURL(\"http://www.google.com\", true);"));
document.Draw(@"E:\Temp\test.pdf");
Thanks,
ceTe Software Support Team.