Posted 20 May 2020, 3:05 pm EST - Updated 3 October 2022, 7:16 am EST
Add link in PDF
Posted by: ntd119 on 20 May 2020, 3:05 pm EST
-
-
Posted 21 May 2020, 3:49 pm EST
SHi,
The PdfDocument class has a drawText method which can be used to draw some text on PDF. This method takes option where we can provide link to the text:
doc.drawText('Click me', 5, 5, { link: 'https://www.google.co.in' });
drawText: https://www.grapecity.com/wijmo/api/classes/wijmo_pdf.pdfdocument.html#drawtext
link: https://www.grapecity.com/wijmo/api/interfaces/wijmo_pdf.ipdftextdrawsettings.html#link
IPdfTextDrawSettings: https://www.grapecity.com/wijmo/api/interfaces/wijmo_pdf.ipdftextdrawsettings.htmlNote that the hyperlink will not be customized as links in a normal webpage are. So, you may use various other options provided in IPdfTextDrawSettings to customize the look and feel of the hyperlinks.
Regards,
Ashwin