PHP Classes

File: pslib_readme.txt

Recommend this page to a friend!
  Classes of Vilson Cristiano Gärtner  >  PSLib  >  pslib_readme.txt  >  Download  
File: pslib_readme.txt
Role: ???
Content type: text/plain
Description: Readme file
Class: PSLib
Main pslib class file
Author: By
Last change:
Date: 21 years ago
Size: 3,889 bytes


Class file image Download
PSLib V0.03
Portable PHP library for dynamically generating PostScript files,
with support for the PHP scripting language.

Copyleft (c) 1999-2000 Vilson Cristiano Gartner (
of the Univates's SAGU Team.

The PSLib distribution is available from:
Portuguese: (recently installed, based on the SourceForge. Thanks.)

see for details on this license.

PSLib is a PHP library for generating PostScript files for the PHP free 
scripting language. It offers an easy way of generating PostScript text 
and graphics with (so far) limited support for drawing. Call PSlib
functions from within your PHP script and voila: dynamic PS files!

The functions should be quite self-explainable and somehow mimic the well
known proprietary PDFlib which generates dynamic PDF files. 

Take a look at History, and make the changes to your old code.

Supported Programming Environments
The PSLib was developed for usage within a PHP script only. Along with 
this distribution there is an example called historico.php3 where PSlib is

PSLib Features
- basic drawing
  lines, rectangles, ...
- text
  text in different fonts and sizes, formatting,
  built-in font metrics, support for international (Latin, European) 
  character encoding (must have the included         
- image file formats
  support for PostScript files (use the GPL software GIMP to generate or
  convert other well known graphic formats to PS) 

Supplied Library Clients

Platform support
PSlib requires a working PHP environment and will run on any platform
that supports PHP.

Where to start?
Read the included example historico.php3 (This example is actually what 
originated PSLib.) and functions.txt

PSLib resources
PSlib is a work in progress. You can ask questions or contribute through
the e-Mail 

External libraries used in PSLib
Mostly TODO.
The was extracted from a file generated by the html2ps open 
source (GPL) program.

Submitting Bug Reports
Send your bug reports to

Clipping Text - formatting text inside a box
Multiple Text FX
Direct PS programming
Any other thing you may find useful. We are really open for contributions. 

Licensing and Copyleft

Read the LGPL license at

Copyleft (c) 1999-2000 PSlib Vilson Cristiano Gartner ( of the Univates' SAGU Team. 

Version 0.03 - December 21, 2000
Major Change: PSLib uses now PHP Class
Lib file name is now: pslib.class. The included pslib.php if for compatibility with
files that require version 0.02 of pslib

Version 0.02 - October 26, 2000
Lib file name changed to pslib.php
Major Bug fixed: page number/count

Other changes:
- Function PS_open: now the parameters are ($file, $author, $title,
- Function PS_begin_page: now the parameters are ($file, $page)
- Function PS_set_acent: are called directly by PS_open.

Version 0.01 - September 1, 2000
First Release.
Functions: PS_begin_page, PS_close, PS_end_page, PS_line, PS_moveto,
PS_moveto_font, PS_open, PS_open_ps, PS_rect, PS_rect_fill, PS_rotate,
PS_set_font, PS_show, PS_show_eval, PS_show_xy, PS_show_xy_font, PS_set_acent

Thanks to:
Ericson C. Smith, for his contribution in the conversion to class 
For more information send a message to info at phpclasses dot org.