Create hyperlinks in pdfs exported by Processing

For the Contemporary Music Timeline i’ve been making, i thought of creating hyperlinks for all the data inserted, because this would be an exhausting process to be done in acrobat, i started searching for ways to do this straight from Processing, i ended up finding this page from Toxi:

It seemed exactly what i wanted, but because it was created in 2007 the pdf.jar file he provides for download is not up to date with the newest Processing version (1.0.9), compared he’s file with the new pdf.jar file and just copied the 2 functions he had added, then i still needed to compile it to a .jar file, because i was dwelling on how to do this i ended up finding this page:

This proven to be as simple as 1-2-3!!
Downloaded the code, updated the and recompiled it. It’s perfectly working now, i managed to reproduce the pdf available as an example at his page with the code he posted.

Here’s the new pdf.jar file with the necessary functions for the latest Processing version

pdf.jar in .zip format >

This entry was posted in Code, Processing and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted January 17, 2010 at 10:02 pm | Permalink

    Olá André! Great stuff that you’ve updated this! I’m only thinking you should file this as an enhancement ticket at so that you don’t have to redo this exercise with every new Processing release… Also, it’d be great to have these 2 methods available anyhow and since the patch/implementation is tiny & already exists, I don’t think Ben will have any issues including it…

    Btw. Good luck with your project & teaching! I miss Lisboa, hope to be back this year at some point…

One Trackback

  1. By Contemporary Music Timeline on January 29, 2010 at 12:23 pm

    [...] update: I’ve been adding a lot more info to it, plus from the efforts in another post added hyperlinks to composers [...]

Post a Comment

You must be logged in to post a comment.