TUTORIAL

How to Save as PDF

	


	Saves one PDF with the contents of the display window.

	Reference: http://www.processing.org/learning/examples/oneframe.html

	import processing.pdf.*;

	PFont font;

	size(800,800);
	beginRecord(PDF, "ellen.pdf");

	font = loadFont("MrsEavesRoman-48.vlw");

	background(255);
	textFont(font, 300);

	translate(400,400);
	for(int i=0;i<6;i++){
	fill(0,0,0);
	textAlign(CENTER);
	pushMatrix();
	rotate(PI*i/3);
	text("Ellen",0,0);
	popMatrix();

	}

	endRecord();

	Exercise1) Save your code as PDF and open in Illustrator.

	How to Save as TGA and TIFF.

	save();
	Reference: http://www.processing.org/reference/save_.html

	PFont font;
	font = loadFont("HelveticaNeue-Roman-48.vlw");
	textFont(font, 32);
	text("word", 15, 50);
	save("ellen.tga");


	PFont font;
	font = loadFont("FFScala-32.vlw");
	textFont(font, 32);
	text("word", 15, 50);
	save("ellen.tiff");