Export large scale print file + web file

Ok I just tested it and if you use the PDF export, using save() doesn’t work :

import processing.pdf.*;

void setup() {
  size(400, 400, PDF, "filename.pdf");
}

void draw() {
  // Draw something good here
  line(0, 0, width/2, height);
  
  save("test.png");

  // Exit the program 
  println("Finished.");
  exit();
}
--> RuntimeException: No save() for PGraphicsPDF

You might want to run your code twice, one with the PDF export and another one with save(...) :wink: