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

Support hyperlinks #148

Open
LinArcX opened this issue Apr 27, 2024 · 1 comment
Open

Support hyperlinks #148

LinArcX opened this issue Apr 27, 2024 · 1 comment

Comments

@LinArcX
Copy link

LinArcX commented Apr 27, 2024

Hi Andre, I like the simplicity of this library. but still, it missed some features.(IMO)

One of them is hyperlinks. currently, we have: pdf_add_link(...), but it's just for linking between pages inside a pdf. but what about web links?

This feature can be beneficial.

@SamWindell
Copy link

This one tripped me up too.

From what I can tell, it would be very simple to add it to this library. Use pretty much all the same code as the OBJ_link, except we'd need to store the URI string, and then when rendering we'd output a URI action. So instead of the /Dest [%u 0 R /XYZ %f %f null]\r\n, we'd need:

/A <<\r\n
  /S /URI\r\n
  /URI (%s)\r\n
>>\r\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants