import processing.pdf.*;
class secondWindow extends PApplet {
secondWindow() {
super();
PApplet.runSketch(new String[] {this.getClass().getSimpleName()}, this);
}
void settings() {
size(100, 100);
}
void setup() {
beginRecord(PDF, "output/example.pdf");
endRecord();
}
}
void setup() {
secondWindow a = new secondWindow();
}
This will result in error message stating:
Can't save the PDF file to /private/var/folders/5k/7mr92p894cldzgn7dfqbp10cp8yl14/T/AppTranslocation/84E3594D-F94C-47DB-8D84-655323E9A2CB/d/output/example.pdf
Putting that address into the search bar of chrome brings me into the directory of Proccessing.app leading me to believe that the app is trying to save the pdf into the App itself?
Assuming the sketch folder is named test, how could I make this program save example.pdf
to test/output/
?
Alternatively, is there any way to find the resolution of the computer running the program from within the program? It would be more beneficial for me to find a solution to the original problem, but I could get the program working with this too.