I am using AddImageHtml function of ABCPDF Library for generating the pages with HTML content. PDF generated text in anchor colour with underline but when I hover on it there is no link functionality. I have a table of content along with headings in each page, whenever click on any of index content page should go to that page.
Added the following line immediate after create a doc object.
theDoc.HtmlOptions.AddLinks = true;
Added the table of content in StringBuilder
and bind that StringBuilder
object in AddImageHtml
function like below
StringBuilder sb = new StringBuilder();
sb.Append('<tr><td><a href='#About'>About</a></td><td> 1</td></tr>');
theDoc.AddImageHtml(@"<table width='100%'>"+sb.ToString()+"</table>");
In Another Page,
theDoc.AddImageHtml("<a name='#About'>About</a>");