-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add support for links (<a> elements) #18
Comments
Children of |
could |
Yes it can probably be done. I see a few options:
|
i investigated having a link in pdf with arbitrary shape and rotation, it doesnt seem possible, (it doesnt seemed to be a PDFKit limitation, rather a pdf format issue) the strategy used by chrome is simply create an oversized link rectangle that covers the entire object (which is similar to your option 3)
i shall try implement option 3 a related bug commit 84064ba seems to only work for top level |
It would be good to do it like chrome, I had never noticed that it makes oversized links when printing as PDF. It's actually quite rare to have non-rectangular links. |
Support for links added in version 0.1.6 |
I think it won't be possible because in PDFKit (and in PDF 1.3) links are only supported for a few basic shapes. And even with the polygon links supported it would be difficult to implement.
I keep this issue open because the children of the <a> tag must be rendered even without the link.
The text was updated successfully, but these errors were encountered: