barryvdh / laravel-snappy

Laravel Snappy PDF
MIT License
2.59k stars 289 forks source link

Link in footer broken(ish) link exists but few pixels above the text #485

Open asntcrz opened 1 year ago

asntcrz commented 1 year ago

Version: "barryvdh/laravel-snappy": "^1.0" Using the facade PDF2::loadView. Adding footer: $footer = '<!doctype html> <html> <head><meta charset="UTF-8"></head> <body style="font-size: 85%; text-align: center">Generated with <a style="text-decoration: none" href="https://example.com" target="_blank">Example.com</a> </body> </html>'; $pdf->setOption('footer-html', $footer);

Also added some margins $pdf->setOption('margin-top', 10); $pdf->setOption('margin-right', 15); $pdf->setOption('margin-bottom', 10); $pdf->setOption('margin-left', 10);

Makes the text appear where it should be, but the actual ancher to click is about 50 px above the text.

I've played around with all those values but none made it work.

Not a huge deal, but it would be nice to have it working properly.

Thank you so much for all your contributions!

Captura

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/KnpLabs/snappy instead. When having doubts, please try to reproduce the issue with just snappy. If you believe this is an actual issue with the latest version of laravel-snappy, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.