Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Recording a pdf with multiple pages does not work

$
0
0

Hey guys,

i am trying to record a pdf with a page for each frame, but it is not working. I tried the official example from the processing-reference, but is just saves a single page of the last frame of my sketch. Is it, because i am using processing2?

import processing.pdf.*;

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

void draw() {
  // Be sure not to call background, otherwise your file
  // will just accumulate lots of mess, only to become invisible

  // Draw something good here
  line(mouseX, mouseY, width/2, height/2);
}

void keyPressed() {
  if (key == 'q') {
    endRecord();
    exit();
  }
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles