After converting HTML to PDF a link is smaller than it should be

25 views
Skip to first unread message

Ryan

unread,
Oct 20, 2015, 8:46:49 PM10/20/15
to pdfne...@googlegroups.com
Q:

In my html I have an anchor element surrounding an image element. In the html, the entire image is a clickable and opens the target path.

But in the generated PDF the clickable area is just the bottom area of the image, most of the image is not selectable.

For example

<p ><a href="http://www.pdftron.com/"><span ><img border="0" width="149" height="162" id="Picture" src='image001.png'></span></a></p>

---------------------------------------------------------

A:

Add the following to your CSS to get the desired output.

a {display:block}


Reply all
Reply to author
Forward
0 new messages