Recommended

2013-05-22

How to create a PDF file with a single hyperlink in it

This blog post explains how to create a PDF file with a single hyperlink in it. Such PDF files are useful as hyperlinks uploaded to prezi.com presentations, because as of 2014-05-22 prezi.com doesn't support hyperlinks with text different from the link target URL: it only supports hyperlinks whose URL appear visually in the presentation. By uploading a PDF with a hyperlink this limitation can be circumvented.

Use this Python script to generate the PDF with a hyperlink. It will create a single page PDF containing green triangle with a hyperlink pointing to the URL specified in the command-line. Example usage on Linux: