Adding links to PDFs using PHP ezPDF

I’ve been making some changes to a site which already uses the ezPDF class for creating PDFs from PHP. How to insert a link?

Helper methods seem to exist but they are not documented in the code and are a bit confusing to read. Instead, you can just embed a hyperlink into any (I think) text entry and it’ll be converted into a clickable link. Use the syntax below.

A very simple example of a complete PDF generation is shown here:

Note: you can get the complete “R&OS” ezPDF class here

3 thoughts on “Adding links to PDFs using PHP ezPDF

  1. I’m having roughly the same issue. This syntax got you underlined link in the pdf? I’m not getting any kind of link using this syntax (Well automatic url linking not anything clean), maybe there is some options to be passed to $pdf?

  2. Admiring the time and effort you put into your site and in depth information you offer.
    It’s great to come across a blog every once
    in a while that isn’t the same outdated rehashed material.
    Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>