We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › pdf export with processing 0118 beta
Page Index Toggle Pages: 1
pdf export with processing 0118 beta (Read 489 times)
pdf export with processing 0118 beta
Oct 3rd, 2006, 8:36pm
 
Hello,
I'm trying to port code from Processing 0115 to 0118, however I have noticed that exporting to pdf does not work with the updated version, but the same code works for the
older 0115.

I've noticed with the 0118 code, after I call beginRecord(),
this outputs the line:

processing/core/PGraphics2

The sketch keeps running, but no pdf file is created. Anyone have any ideas? example of code is posted below.

thanks,
richard


void setup() {
 size(1024, 768, OPENGL);
 background(255);
}

void save() {
   record = true;
   beginRecord(PDF, "test.pdf");
}

void draw() {
   background(255);
   
   if (record) {
     println("if");
     axes();
     legend.draw();
     spectra();
   }
   else {
     axes();
     legend.draw();
     spectra();
     select_new();
     userinterface.draw();
   }

   if (record) {
     println("endrecord");
     endRecord();
     record = false;
     //exit();
   }
   else {
     select_new();
     userinterface.draw();
   }
}
Re: pdf export with processing 0118 beta
Reply #1 - Oct 3rd, 2006, 10:28pm
 
that looks like you have an old version of core.jar somewhere in your sketchbook or CLASSPATH. perhaps an errant library that includes the PGraphics classes, the way that the old illustrator library did?
Re: pdf export with processing 0118 beta
Reply #2 - Oct 3rd, 2006, 11:09pm
 
thanks very much, that was the problem.

I've been rewriting parts of the interfacsia library, and forgot to recompile the libary w/ the new core.jar.
Page Index Toggle Pages: 1