diff --git a/pdf/src/processing/pdf/PGraphicsPDF.java b/pdf/src/processing/pdf/PGraphicsPDF.java index 429e70795..4c10e753c 100644 --- a/pdf/src/processing/pdf/PGraphicsPDF.java +++ b/pdf/src/processing/pdf/PGraphicsPDF.java @@ -28,7 +28,7 @@ public class PGraphicsPDF extends PGraphicsJava2D { public PGraphicsPDF(int width, int height, PApplet applet, String path) { - super(width, height, null); + super(width, height, applet); //System.out.println("trying " + path); @@ -80,6 +80,16 @@ public class PGraphicsPDF extends PGraphicsJava2D { } + public void setMainDrawingSurface() { + // set as main drawing surface + mainDrawingSurface = true; + // this shouldn't actually affect anything + format = RGB; + // don't bother adding listeners for this guy + //parent.addListeners(); + } + + // create a temporary file and put the graphics crap there // don't start a fresh page if frameCount is zero (setup isn't its own page)