PDF rendering issues with Ruby-Processing
in
Processing with Other Languages
•
3 years ago
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:
- load_library :pdf
- import "processing.pdf.*"
- def setup
- size(400, 400, PDF, "/Users/avianism/Desktop/filename.pdf")
- end
- def draw
- background 128
- line(0, 0, width/2, height)
- puts "Finished"
- exit
- end
Has anybody else run into this issue?
1