Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ABCPDF not rendering links

I am using the AddImageUrl function of the ABCPDF library and getting the pages to render fine as PDFs. But I am having a problem where the links (a tags) are not getting rendered in the PDF links but rather as normal text without the link functionality. I have checked the HTML page to make sure that the links exist on the page.

like image 843
Gabbar Avatar asked Jan 18 '23 23:01

Gabbar


1 Answers

I figured this out. Hopefully, this will help someone else who has this problem. You need to include the following lines before generating the pdf to make the links active.

theDoc.HtmlOptions.AddLinks = true;

like image 53
Gabbar Avatar answered Jan 25 '23 18:01

Gabbar