that's pretty much identical to the example in the reference here
http://processing.org/reference/libraries/pdf/index.html
which i assume works.
so i think your problem is that you're drawing offscreen
line(frameCount*100, 600 , frameCount*100, 0);
with a screen size of 600x600 gives you 6 frames, about a 1/10th of a second, to press a key and save an image.
http://processing.org/reference/libraries/pdf/index.html
which i assume works.
so i think your problem is that you're drawing offscreen
line(frameCount*100, 600 , frameCount*100, 0);
with a screen size of 600x600 gives you 6 frames, about a 1/10th of a second, to press a key and save an image.