pdf 0 byte
in
Programming Questions
•
6 months ago
I don't get it...
I dont want PDF in size, neither i want to use beginRecord.
Why doesn't this work:
- import processing.pdf.*;
- void setup() {
- size(500, 500);
- }
- void draw() {
- exportPDF("wtf.pdf");
- println("done");
- noLoop();
- exit();
- }
- void exportPDF(String fileName) {
- PGraphics pg = createGraphics(width, height, PDF, fileName);
- pg.beginDraw();
- pg.smooth();
- pg.background(0);
- pg.stroke(255);
- pg.noFill();
- pg.line(0, 0, width, height);
- pg.endDraw();
- }
1