tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.22k stars 1.52k forks source link

Gap between actual link and where it appears clickable #507

Open RaviJayagopal opened 2 years ago

RaviJayagopal commented 2 years ago

Hi folks,

I'm using "tecnickcom/tcpdf": "6.3.0" and "propa/tcpdi": "1.3.2"

(propa/tcpdi is just a github enabled version of https://github.com/pauln/tcpdi.)

Now for the issue: See https://i.imgur.com/Tk61jOa.png

I open an existing PDF, add a watermark, then output the new PDF directly to the browser.

Everything's working great, except, there appears to be about an inch of gap between a link and where it appears as clickable.

So if there's a link on line 1, then hovering over that link doesn't do anything. But if I keep moving my mouse down slowly, and get to about 3-4 lines below, that's when the "hand" icon shows up, indicating that the link 2 lines above is a clickable link.

In the image above, you can see that "Anchor.fm" is on one line. But the "hand" only shows up a few lines below.

This is happening with all links in the PDF.

Does anyone have any idea what might be going on?

Thanks in advance for your help!