PHP Classes

File: psprint_test3.php

Recommend this page to a friend!
  Classes of Andrioli Darvin   APrint   psprint_test3.php   Download  
File: psprint_test3.php
Role: Example script
Content type: text/plain
Description: PsPrint usage sample script
Class: APrint
Printing module server site
Author: By
Last change:
Date: 19 years ago
Size: 1,123 bytes


Class file image Download
 * Psprint test module
 * $Header: d:\cvs/classistd/aprint/psprint_test3.php,v 1.3 2005/02/13 21:02:40 Darvin Exp $
// Class setup. I set the title for the job

$p=new psprint("test_3","aprint_test3.php-1.2.0");

// Margins setup: top, bottom, and left
// Create the font to use for the header.
// Two fonts: one big, one normal
// $fnt1=$p->CreateFont("z003034l",720,360,800);
/* Now setup the header.
 * First array, the header is made by 3 rows,
 * Second array the font to use to each row.
 * I want use the big font for the first and third row.
$p->SetPageHeader(array("This is a simple",
"text used to test",
"the header"),
$fnt1,$fnt2,$fnt1) // different font foe each row
// Draw some text
// Close the page