I'm having issues with PDF rendering with Ruby-Processing, and was wondering if anybody else has run into this issue. As far as I know, I'm using the latest version of Ruby-Processing (installed using gem), which uses Processing 1.0.9. I'm running Mac OS 10.6.
When attempting to render a PDF, a file is created at the correct location, but nothing is ever written to it. Also, a rendering window opens on-screen (it shouldn't), and the program then hangs.
Here's some simple code which reproduces the problem:
I don't think you want to be in draw, I don't know whether it is necessary to have a class it is just easier to specify size and renderer separately. I've never used the PDF renderer before with ruby processing. Although I thought initially this worked for me, I,m not so sure, because I get the same issue of being unable to write PDF file, it may be worth a bit more experimenting before we file a bug.