PDFGen icon indicating copy to clipboard operation
PDFGen copied to clipboard

Support hyperlinks

Open LinArcX opened this issue 1 year ago • 1 comments

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.

LinArcX avatar Apr 27 '24 07:04 LinArcX

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

SamWindell avatar Jan 04 '25 13:01 SamWindell