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:
http://toxi.co.uk/blog/2007/08/creating-weblinks-in-pdf-with-itext.htm
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:
http://dev.processing.org/build/
This proven to be as simple as 1-2-3!!
Downloaded the code, updated the PGraphicsPDF.java 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

One Comment
Olá André! Great stuff that you’ve updated this! I’m only thinking you should file this as an enhancement ticket at http://dev.processing.org/bugs/ 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
[...] update: I’ve been adding a lot more info to it, plus from the efforts in another post added hyperlinks to composers [...]