Can't find the pdf - eclipse
in
Integration and Hardware
•
2 years ago
My script runs fine, however, i can't see a pdf in the project folder after i runned the script.
How's that?
p.s. i didn't add the pdf.jar and itext.jar to my lib folder, but i did add them with "Add External Jars.." however that shouldn't be a problem but i note it anyway.
also i get this error
isRecording(), or this particular variation of it, is not available with this renderer.
so the lib must be working.
How's that?
p.s. i didn't add the pdf.jar and itext.jar to my lib folder, but i did add them with "Add External Jars.." however that shouldn't be a problem but i note it anyway.
also i get this error
isRecording(), or this particular variation of it, is not available with this renderer.
so the lib must be working.
- import processing.core.PApplet;
import processing.pdf.*;
public class MyFirstClass extends PApplet{
/**
*
*/
private static final long serialVersionUID = 1L;
public static void main(String args[]) {
PApplet.main(new String[] { "--present", "MyFirstClass" });
}
public void setup() {
size(800, 800);
}
public void draw() {
beginRecord(PDF, "output.pdf");
background(255);
fill(255, 0, 0);
ellipse(width/2, height/2, 50, 50);
endRecord();
exit();
}
}
1