Home Home  

Project: User-friendly printing

This project allows the user to print a properly formatted article or webpage. It will also print URL's nicely on the bottom of the page. It will become available as a symfony Plugin (Open Source). It's already available as symfony snippet.

The interface exists of a checkbox "User friendly printing". Enable the checkbox option to print only the main content area. Disable the option to allow the browser to handle full page printing.

How it works:
1. A seperate stylesheet, type print, is used override the stylesheets used for screen layout/style purposes. It will set the width correctly and suppress the output of tags (like the sidebar) that you don't want to see printed.
2. Data is not reloaded from the server, means no extra calls to the server.
3. Depending on the setting of the checkbox, will the browser (Print) or (Print Preview) buttons/menu-options send a well formatted Main Content Area OR the full page to the printer or printer preview screen

Link colors, underlining and more nice things can be changed in the overriding print stylesheet.

The product consists of:

  • component slot for user interface
  • javascript file
  • instructions for the creation of a CSS print file
  • some example files

Techniques used: PHP5, Javascript, CSS

ToDo: The checkbox will enable the placement of complete URL's on the bottom of the print by annotation. Example: On screen it shows the link "This is the Google site" and printed it will be "This is the Google1 site".
On the bottom of the print will be printed:
(1) www.google.com

Updated at: 2008-03-14

Search

 
 


Popular Tags



Info

About this site
Copyright
Contact
Sitemap


User options

Change font size (Help)


User friendly printing (Help)

 


Valid XHTML 1.0 Transitional