artist has asked for the wisdom of the Perl Monks concerning the following question:

I am using PDF::API2 to create pdf documents. I like to know, how to convert text into hyperlinks in pdf file. I came across PDF::API2::Annotation, but not sure how to use that. Also sometime, my text is larger than single line, which I like to hyperlink too.

Replies are listed 'Best First'.
Re: Hyperlinks in PDF
by Anonymous Monk on Apr 05, 2005 at 05:48 UTC
    Artist, I'm relatively new at this but I've found out quite a bit about PDF::API2. The short answer to your question can be found here: http://groups.yahoo.com/group/perl-text-pdf-modules/message/1042

    The idea behind an annotation object is to create a rectangle that is a 'hot zone' that turns the mouse pointer into a 'clickable finger' when hovering over it.

    Hope this example (from the author of PDF::API2) will help you in creating hyper links. BTW, you can create links to URL's and to other pages in the PDF document.

    -Mercutio_viz

    Edit by castaway - linkified url, formatting

      Hey thanks. Mercutio_Viz
      It really works as expected. Since you are new, you can open an account here too. This is wonderful place