PHP Classes

File: psprint_test2.php

Recommend this page to a friend!
  Classes of Andrioli Darvin   APrint   psprint_test2.php   Download  
File: psprint_test2.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: 481 bytes
 

Contents

Class file image Download
<?
/*
 * Psprint test module
 * This test write so many row to fill one page and to skip to the second one
 * $Header: d:\cvs/classistd/aprint/psprint_test2.php,v 1.2 2005/02/13 20:29:29 Darvin Exp $
 */
require_once('psprint.php');
$p=new psprint("test_2","aprint_test1.php-2.1.0");
$p->SetPageSize('A4',AP_PORTRAIT);
$p->OpenFileName('test2.ps');
$p->SetMargin(2880,1400,1200);
$p->HeaderText("test_2");
for(
$i=0;$i<50;$i++)
  
$p->Text("row:".$i);
$p->run();
?>