#1 PDF Engine » Add an HTTP hyperlink to a PDF » 2013-08-15 14:46:07

aaw
Replies: 0

Hello everyone,

Is there any way to add an http hyperlink (http://...) to a PDF file? I have tried several options, but none of them seem to work. TPDFDocumentGDI.CreateLink only seems to link to a bookmark and a bookmark can only point to a location in the current PDF, not to an external location (open a link in the default browser), if I understand it correctly.

I have also tried to generate the PDF using the TGDIPages in mORMot (using DrawTitle or AddLink), but that doesn't seem different. The link is clickable, but nothing happens. I have tried to set the URL string in the aLink parameter, but I don't know if this is the correct approach. Any idea?

And while we're at it, is it possible to remove the border (outline) of a link (hyperlink or bookmark)? I have tried setting UseOutlines to False, but that doesn't seem to have any effect on it

Any nudge in the right direction would be appreciated. Thanks!
Alex

Board footer

Powered by FluxBB