How to display a Email Link

How to display a Email Link

Forum member · Aug 20, 2009
Hi, I want to display a email address on the PDF Document so that is appears as a link and when the user clicks on the email link it should open an email client like Outlook on users machine. how can this be done

Re: How to display a Email Link

Support · Aug 20, 2009
Hello, Yes, you can do this using the mailto: tag without any problem. Below is the sample code for this. Document document = new Document(); Page page = new Page(); UrlAction urlA = new UrlAction("mailto:emailId@domain.com"); Label label = new Label("email me", 10, 10, 100, 20); Link link = new Link(10, 10, 100, 20, urlA); page.Elements.Add(label); page.Elements.Add(link); document.Pages.Add(page); document.Draw(@"C:\Temp\linkPDF.pdf"); Thanks, ceTe Software Support Team.