"Florida", "OSU Score" => "??", "Visitor Score" => "??"), array("Opponent" => "Michigan", "OSU Score" => "42", "Visitor Score" => "39"), array("Opponent" => "Northwestern", "OSU Score" => "54", "Visitor Score" => "10"), array("Opponent" => "Illinois", "OSU Score" => "17", "Visitor Score" => "10"), array("Opponent" => "Minnesota", "OSU Score" => "44", "Visitor Score" => "0"), array("Opponent" => "Indiana", "OSU Score" => "44", "Visitor Score" => "3"), array("Opponent" => "Michigan State", "OSU Score" => "38", "Visitor Score" => "7"), array("Opponent" => "Bowling Green", "OSU Score" => "35", "Visitor Score" => "7"), array("Opponent" => "Iowa", "OSU Score" => "38", "Visitor Score" => "17"), array("Opponent" => "Penn State", "OSU Score" => "28", "Visitor Score" => "6"), array("Opponent" => "Cincinnati", "OSU Score" => "37", "Visitor Score" => "7"), array("Opponent" => "Texas", "OSU Score" => "24", "Visitor Score" => "7"), array("Opponent" => "Northern Illinois", "OSU Score" => "35", "Visitor Score" => "12"), ); // Typically, the text below would be read from a file $text = "When USC shockingly lost to UCLA in early December, the BCS national championship game lost a ton of its luster. Sure, it will be interesting to see if Ohio State can complete its magical ride to an unbeaten season. The Buckeyes were ranked #1 in my preseason Outsports Top 25 poll and have remained there all year long. But one can’t help but think of how exciting an Ohio State-USC game would have been."; // Create a new pdf document $doc =& new Cezpdf(); // Select the font to use (optional) $doc->selectFont("./fonts/Helvetica.afm"); // Display an image (Note: read online documentation for more information) // Parameter 1: name of file - jpg or png (only required parameter) // Parameter 2: amount of padding in points to place around image // Parameter 3: width of image // Parameter 4: a resize value // Parameter 5: justification // Parameter 6: border to place around image $doc->ezImage("osu_logo.png", "", "", "none", "left"); // Move up the page 70 points $doc->ezSetDy(70); // Display text // Parameter 1: text (only required parameter) // Parameter 2: font size // Parameter 3: array of options $doc->ezText("Ohio State University", 24, array("justification" => "center")); $doc->ezSetDy(-40); // Display a table $doc->ezTable($table); $doc->ezSetDy(-10); $doc->ezText("National Title Thoughts", 12); $doc->ezSetDy(-10); $doc->ezText($text, 8, array("justification" => "left")); // Create PDF document and send it to browser $doc->ezStream(); ?>