Skip to content

Commit bf08a7a

Browse files
authored
Correct PDF example
100-page example had a blank 101st page appended to it.
1 parent f9df90f commit bf08a7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/api_en/LIB_pdf/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@
4545
line(0, 0, frameCount * 4, height);
4646

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

5049
// When finished drawing, quit and save the file
5150
if (frameCount == 100) {
5251
exit();
52+
} else {
53+
pdf.nextPage(); // Tell it to go to the next page
5354
}
5455
}</pre>
5556

0 commit comments

Comments
 (0)