When I create hyperlink in PDF in Adobe Acrobat, I have option "Inherit zoom". Is this possible to make same link via DynamicPDF?
Inherit zoom
Re: Inherit zoom
Support · Jan 31, 2011Hello,
It is possible to add a hyperlink using our API, but it is not possible to set the "Inherit Zoom" option. Here is the sample code to add hyperlink using our API.
Document doc = new Document();
Page page = new Page();
string strLink1 = "Page2";
doc.Pages.Add(page);
XYDestination action1 = new XYDestination(2, 0, 0);
Link link1 = new Link(50, 100, 400, 20, action1);
ceTe.DynamicPDF.PageElements.Label label1 = new ceTe.DynamicPDF.PageElements.Label(strLink1, 50, 100, 400, 20,ceTe.DynamicPDF.Font.HelveticaBold , 18, RgbColor.Blue);
page.Elements.Add(link1);
page.Elements.Add(label1);
Page page1 = new Page();
page1.Elements.Add(new Label("Page 2", 100, 100, 200, 20));
doc.Pages.Add(page1);
doc.Draw(@"C:\Mydocument.pdf");
Thanks,
ceTe Software Support Team.