I actually spent allot of time on the link you listed.
I know Import processing goes at the beginning of the script.
Then I get errors when I type in the rest of the code below when I run the file. It does not export.
void setup() { size(400, 400, PDF, "filename.pdf"); } void draw() { // Draw something good here line(0, 0, width/2, height); // Exit the program println("Finished."); exit(); }