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 and createGraphics P3D
Page Index Toggle Pages: 1
PDF and createGraphics P3D (Read 399 times)
PDF and createGraphics P3D
May 26th, 2008, 5:51pm
 
Hello,

Is it possible to make a PDF of a canvas I have created using createGraphics?

example:
canvas = createGraphics(500,500,P3D);
canvas.beginRecord("PDF","test.pdf");
canvas.line(x,y,z,x2,y2,z2);

As this doesn't seem to work is there another way to turn the 3D canvas into a PDF?  Of course the vectors will be two-dimensional in the PDF file, but I would nonetheless like to use 3D geometry (with all the transform, push, pop commands available using the P3D renderer)  to create them.

Thanks!


Re: PDF and createGraphics P3D
Reply #1 - May 28th, 2008, 3:54am
 
You can look for the information, Maybe have useful contents.
http://processing.org/reference/libraries/pdf/index.html
Page Index Toggle Pages: 1