New on PHPBuilder.com this morning, there's an article for anyone out there that has wanted quickly and easily create a "printer-friendly" version of their pages.
According to Creating a Printer Version - Grab Method, there are three basic ways to create such a format. However, they opt for a fourth - using a hidden HTML content block to mask the printer-friendly HTML. They include other extras in the setup, including: caching grabbed pages in your database, extend the scripts with templates for each Printer Version you might need, and the ability to edit/update some of the text inside the content block. The script grabs the content, ensures it's not already cached, and slaps it together with a template, and - voila! - you have HTML output ready for printing.
This article shows one way to accomplish the "printer-friendly" aspect of the page, but he seems to have missed out on one of the simplest ones - changing the CSS template based on print versus screen (ex. this from A List Apart).




