just been experimenting with trying to include a hyperlink in a pdf without success.
My clients get sent emails with a 'click this link to download your invoice' message which is a PITA and I was trying to find a way to automate the download. Think I've solved that using the relatively undocumented URLDownloadToFile api - which is of no help to the OP but I extended the investigation into saving the email as a pdf so I could store the emails in a folder along with the download.
Best I could achieve was generating a .htm file from the email rather than a pdf to preserve the hyperlink.
Saving the htm file as a pdf did not produce a clickable link in the pdf so I suspect using richtext will have the same result.
I did find this link which I believe explains why adding a hyperlink to a pdf is not simple
Learn how to easily add hyperlinks to your PDF with simple steps. Make your document interactive and user-friendly. Find out more now!
www.foxit.com
essentially
Before you start adding hyperlinks, you need to understand something about hyperlinks in PDFs. Many document formats (HTML, Word, Google Docs, etc.) associate a hyperlink with a text string.
PDFs work differently: a hyperlink in a PDF has nothing to do with the underlying text. Instead, a hyperlink in a PDF is a pre-defined clickable area on a page. Think of it as an invisible square box. When a user hovers their cursor over this space, their cursor changes, indicating it’s clickable.
So suggest OP considers outputting the report as an htm file instead (acFormatHTML or perhaps acFormatRTF)
Or maybe invest in adobe apps which will convert the text for you - but looks like a manual process to me
Discover how to improve user experience by linking sections within a PDF file, adding hyperlinks to other documents or websites, and sending PDFs as links.
www.adobe.com
In line with the above quote, one of the steps is
2. Drag a rectangle where you want to create a link. Whether it’s a text box or graphic, this will be the area in which the link is active.
edit - another link that may be of use
Is there a node.js module or a javascript library that can convert HTML/Page into PDF with selectable texts and working links? I've tried Phantomjs. But since its the only screenshot the page and c...
stackoverflow.com