PHP Classes

PHP Printer Friendly Pages Generator: Generate HTML pages adjusted for printing

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 37%Total: 7,100 All time: 274 This week: 347Down
Version License Categories
phpprinterfriendly 1.0.0Free for non-comm...HTML, Printing
Description 

Author

This package can be used to generate HTML pages adjusted for printing.

It looks for certain tags in a page HTML template that delimit the page content that should be extracted from the normal page version to generate the printable version.

The class can also process links to display their URL near the link text in the printable version.

The images may also be removed from the content that is used to generate the printable version.

The printable version output is defined using a separate page template.

Innovation Award
PHP Programming Innovation award nominee
October 2006
Number 4


Prize: One copy of DWeb Pro Lifetime License
Many sites present alternative versions of their pages that are more suited for printing.

Usually, printable versions are made of the main page content taking out navigation bars, background images, advertising etc..

This class provides means to generate printable versions of site pages. It looks for specific tags in the pages that delimit the main page contents section. Then it uses a separate template to output the page printable version.

Manuel Lemos
Picture of Stefan Gabos
Name: Stefan Gabos <contact>
Classes: 12 packages by
Country: Romania Romania
Age: 44
All time rank: 312 in Romania Romania
Week rank: 312 Down3 in Romania Romania Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Files folder imageincludes (2 files)
Files folder imagetemplates (1 directory)
Accessible without login Plain text file ChangeLog Data change log file
Plain text file class.printer.php Class class source
Accessible without login Plain text file License Lic. license file
Accessible without login Plain text file print.php Example application script

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example1.php Example example script

  Files folder image Files  /  includes  
File Role Description
  Plain text file class.xtemplate.php Class templating engine
  Accessible without login Plain text file license.txt Lic. license file for the templating engine

  Files folder image Files  /  templates  
File Role Description
Files folder imagedefault (2 files)

  Files folder image Files  /  templates  /  default  
File Role Description
  Accessible without login Plain text file style.css Data default template's stylesheet file
  Accessible without login Plain text file template.xtpl Data default template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:7,100
This week:0
All time:274
This week:347Down
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:37%StarStar
Rank:3922