Bug 1131 : multipage pdf works not like described in the docs
Last modified: 2009-02-20 10:22




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
lenny
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-01-20 15:21
i'm using processing 1.0.1 on a macbook pro OSX 10.5.5

i needed to export a multipage-pdf. so, i tried to do this as suggested in
the docs:

from the docs (http://processing.org/reference/libraries/pdf/index.html):

Multiple Pages (No Screen Display)
It's possible to write every frame as a new page in the PDF document. This
example creates a 100 page document:

import processing.pdf.*;

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

void draw() {
// Draw something good here
line(0, 0, frameCount * 4, height);

PGraphicsPDF pdf = (PGraphicsPDF) g; // Get the renderer
pdf.nextPage(); // Tell it to go to the next page

// When finished drawing, quit and save the file
if (frameCount == 100) {
exit();
}
}

does not work.

i posted this issue in the discourse.
user PhiLho found a way to make it work.
see the post here: http://tinyurl.com/8xom6s

i guess this is either a bug, or the docs should be updated.
Additional Comment #1 From fry 2009-02-20 10:22
Found and fixed for 1.0.2, thanks for the report.