PHP Classes

PHP Print: Abstraction for printing documents

Recommend this page to a friend!

  Author Author  
Name: Mick Sear is available for providing paid consulting. Contact Mick Sear .
Classes: 8 packages by
Country: United Kingdom United Kingdom
Age: 44
All time rank: 372 in United Kingdom United Kingdom
Week rank: 44 Down1 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package provides an abstract interface for printing documents.

Currently the package includes one implemented class that allows printing of basic text or preformatted (.prn) document files using the LPR protocol

The data to be sent to the printer can be either a filename or a string.

The driver interface provides hooks in the code to allow development of printer filters (drivers). Other driver classes can be developed to implement custom printer filtering like for instance to send documents to Postscript printers.

  Classes of Mick Sear  >  PHP Print  >  Download Download .zip .tar.gz  >  Support forum Support forum (8)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Print
Base name: php_print_lpr
Description: Abstraction for printing documents
Version: 1.0.0
PHP version: 5
License: GNU Lesser General Public License (LGPL)
All time users: 14641 users
All time rank: 63
Week users: 13 users
Week rank: 64 Down
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Trackback   Applications   Related pages   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Printing Document generation and preparation for printing View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file example.gif Screen Screen grab of sample output


Printing page setting dynamically
Need to print page setting options dynamically

  Innovation Award  
PHP Programming Innovation award nominee
September 2005
Number 5

Prize: One copy of DWeb Pro Lifetime License
Many Web applications need to provide means to print documents that they generate.

Printing documents is a task that can be implemented in ways that depend on the device into which the documents are printed, and also on the operating system in use.

This class provides an abstract interface that separates the generation of document printing data from the actual printing process. Many drivers can be developed to support different types of printing processes.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (87%) Good (84%) - Good (90%) - - Sufficient (61%) 1119
Month: Not yet rated by the users

  Pages that reference this package  
Generate and print barcode (Spanish)
In PHP LPR tenes this class...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
RFC 1179
LPR specification

  Files folder image Files  
File Role Description
Plain text file lpr_example.php Example Example of use
Plain text file PrintSend.php Class Abstract Class
Plain text file PrintSendLPR.php Class LPR class
Plain text file test.txt Data Test data file

Install with Composer Install with Composer - Download Download all files: php_print_lpr.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.