Reputation: 7557
I am developing a PDF with Flying Saucer via Velocity and I need to show a button that when pressed will point to a URL.
I am currently using a simple anchor tag with an img tag as follows:
<a href="$applyUrlsKey.get($cntr)" target="_blank"><img alt="Apply button image" src="images/applyButton_small.gif" title="Apply" /></a>
But this simply shows the image on the PDF and am unable to click on it.
So how can I make this imgage clickable?
Upvotes: 1
Views: 1419
Reputation: 31
I was faced with the same problem and putting the a-tag to be a block, fixed the problem:
<a href="$applyUrlsKey.get($cntr)" style="display: block" target="_blank">
<img alt="Apply button image" src="images/applyButton_small.gif" title="Apply" />
</a>
Hopefully this does the trick for you.
Upvotes: 3