In a recent post titled Dial a Phone from a PDF Link on Mobile Devices on the Acrobat For Legal Professionals blog, it was demonstrated how you can create a web link in a PDF that when clicked on an mobile device would dial the phone number.
Well it is easy to add these links programmatically using Foxit Quick PDF Library. There is no special feature required, simply pass a phone number formatted as you see below, to the AddLinkToWeb function.
PDFLib.SetOrigin(1); PDFLib.AddLinkToWeb(200, 100, 60, 20, "tel:+61400000000", 1); PDFLib.DrawText(205, 114, "Click me!"); PDFLib.SaveToFile("doc.pdf"); |
That’s it! We’re seeing more and more PDFs on mobile devices now that we have our iOS and Android versions of Foxit Quick PDF Library.