Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperlinks bug... #3087

Open
alejandrodr1903 opened this issue Dec 20, 2022 · 1 comment · May be fixed by #2762
Open

Hyperlinks bug... #3087

alejandrodr1903 opened this issue Dec 20, 2022 · 1 comment · May be fixed by #2762
Milestone

Comments

@alejandrodr1903
Copy link

alejandrodr1903 commented Dec 20, 2022

So, i use DomPDF to generate a catalog, and i need to make a Hyperlink to my page on it.

the html code looks fine...

<td style="width:25%!important; "> <table style="width:100%; max-width:23.75%!important; vertical-align: middle;"> <tr> <td style="padding: 0 10px;"> <a href="https://google.com/271077"> <center> <img style="height:100px; max-width:140px; vertical-align:middle;" src="{{imageurl}}"> </center> </a> </td> </tr> <tr> <td style="width: 100%; text-align: center;"> <p style="font-size: 9.5px; margin:0.5px 0;">271077 - Pack: 1 - UD.</p> </td> </tr> <tr> <td style="width: 100%; text-align: center;"> <p style="font-size: 10.5px; margin:0.5px 0px; font-weight: bold;">ART.VAPEADOR DESECHABLE CON NICOTINA PIÑA</p> </td> </tr> <tr> <td style="width: 100%; text-align: center;"> <p style="font-size: 9.5px; margin:0.5px 0;"><b>4.25€</b> (4.25x uni.)</p> </td> </tr> <tr> <td style="width: 100%;"> <center> <img style="height:1.1rem;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdsAAABkAQMAAAD0XwhjAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAGBJREFUWIXty7ENgDAQQ1EjipQZIZvAYhSRMlk2uREor0AclyWofmfZfvKjPi1mdLlqb9ru3cqM7N46LNewEtmtS/Mzk0vXOg8TGAwGg8FgMBgMBoPBYDAYDAaDweC/8AczumBJus4KnQAAAABJRU5ErkJggg=="> </center> </td> </tr> </table> </td>

but when i render my PDF, all Hyperlinks go to a corner
image

all of my Hyperlinks are located in that corner...

the blade works ok, but, when i try to render the pdf, it doesnt work at all.

Catalogo.pdf
sample.txt

@bsweeney bsweeney added this to the 2.0.2 milestone Dec 21, 2022
@bsweeney
Copy link
Member

Definitely something wrong with that render. I believe the primary issue is related to how the line height is determined. Though the image is correctly rendered and the bounding box for the link is correctly sized, the line it's on does not correctly account for the image height.

Work to address the issue is under way in #2762.

@bsweeney bsweeney linked a pull request Dec 21, 2022 that will close this issue
@bsweeney bsweeney modified the milestones: 2.0.2, 2.0.3 Dec 29, 2022
@bsweeney bsweeney modified the milestones: 3.0.1, 3.1.0 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants