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

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

`


`

A:

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

a {display:block}