This module allows you to generate the following printer-friendly versions of any node:
- Printer-friendly version (webpage format) (at
www.example.com/print/nid) - PDF version (at
www.example.com/printpdf/nid) - Send by-email (at
www.example.com/printmail/nid)
where nid is the node id of content to render.
Important: The current versions of the module require at least Drupal 5.17, 6.11 or 7.0. They will not work in older versions.
By editing the default print.css or specifying your own CSS file and/or the print.tpl.php files, it is possible to change the look of the output page to suit your taste. For a more fine-grained customization, it is possible to use a template file named:
- Drupal 6: print[_html|_mail|_pdf][.node-node-type].tpl.php
- located in either the current theme or the module directory.
- Drupal 7: print[--html|--mail|--pdf][--node--node-type].tpl.php
- located in the current theme directory.
Where node-type is Drupal's node type (e.g. page, story, etc.).
To be able to create a PDF version, please follow the instructions in the INSTALL.txt carefully.
You must install one of the following third-party tools:
- wkhtmltopdf: webkit-based tool that actually launches a browser to generate the PDF. Resource hungry: expect to need some 30Mb+ of RAM and some seconds of CPU power. The static binaries may need additional libraries in your site, which may present problems in shared hosting environments. The best, if you can run it.
- TCPDF: Includes methods to publish some XHTML + CSS code, Javascript and Forms. Limited reproduction of the web page as a whole, but good for producing simple output of drupal (e.g. creating reports of site data). Unicode support (warning: use of Unicode fonts will result in HUGE files). PDF header and footer supported. PHP5 and PHP4 supported. TCPDF 5.9.012 or later required.
- dompdf: Handles most CSS 2.1 and a few CSS3 properties, including @import, @media & @page rules. Excellent reproduction of the web page. PDF header and footer not supported. PHP5 required.
#D7CX: The Printer-friendly, e-mail and PDF versions module will have a full Drupal 7 release on the day that Drupal 7 is released.
#D7AX - I pledge to make this module as accessible as it can be. If you find any flaws, please submit an issue. Help me fix them if you can.
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content Display, Import/Export, Mail, Third-party Integration
- Reported installs: 49581 sites currently report using this module. View usage statistics.
- Last modified: August 18, 2011