-
Notifications
You must be signed in to change notification settings - Fork 8
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
a \pdfstartlink command with hooks #1
Comments
Looks reasonable: I'd be minded to split this between a |
@josephwright yes I think too that there is driver and a pdf part involved. And I think that we will need at least two variants for the driver part: \driver_pdf_startlink_user:nn and \driver_pdf_startlink_goto:nn as I don't see how to unify pdftex/luatex and dvipdfmx syntax without it. |
Should this be revisited ‘in the time of hooks’? |
The hooks are already implemented. The code uses our new hooks, and also a property/dictionary. See the definition of |
packages like ocgx2 and tagpdf wants to add code to links/annotation created by hyperref. So we need a generic command to start a pdflink which allows packages to add their code to the attr argument through hooks.
A typical start for url link looks e.g. like this
It is probable that other annotations created with \pdfstartlink (named destination, form fields) should have independant hooks. So the new startlink command should have an argument for the "annotation type" The action is then in the second argument:
\pdf_startlink:{type}{action spec}
. The content of the attr argument is a dictionary, so using a property list to manage it sounds sensible.A rought draft for possible implementation:
The text was updated successfully, but these errors were encountered: