Printer, e-mail and PDF versions

Slug: 
print
Versions de Drupal: 
5.x
6.x
7.x
D.o - Installation Rank: 
35
D.o - Reported Installs: 
37 485
D.o - Maintenance Status: 
Unknown
D.o - Development Status: 
Unknown
D.o - Module Categories: 
Content Display, Import/Export, Mail, Third-party Integration, Utility
D.o - Download 5.x: 
5.x-4.11|http://ftp.drupal.org/files/projects/print-5.x-4.11.tar.gz|214.07 KB
D.o - Download 6.x: 
6.x-1.12|http://ftp.drupal.org/files/projects/print-6.x-1.12.tar.gz|213.34 KB
D.o - Download 7.x: 
7.x-1.x-dev|http://ftp.drupal.org/files/projects/print-7.x-1.x-dev.tar.gz|209.85 KB
D.o - Original Description: 
Print module rules the Barajas T4 parking

#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.

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 or 6.11. They will not work in older versions.

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. May need to install/compile in your site. Requires an X server, which if you're in a shared host won't be available and you'll lack the resources to install/compile it. The best, if you can run it.
  • TCPDF: CSS not supported. Limited reproduction of the web page. Unicode support (warning: use of Unicode fonts will result in HUGE files). PDF header and footer supported. Released very often (weekly). PHP5 and PHP4 supported. TCPDF 4.0.000 or later required.
  • dompdf: full CSS support. Excellent reproduction of the web page. No Unicode support (only ISO-8859-1). PDF header and footer not supported. Not maintained (last release v0.5.1 in 2006-07-07). PHP5 required. Some known bugs from incomplete implementation - not recommended for general use.

By editing the default print.css or specifying you 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 print[_format][.node-node-type].tpl.php file located in either the current theme or the module directory (format is either html, mail or pdf, and node-type is Drupal's node type (e.g. page, story, etc.)).

Recettes pointant vers ce noeud

Souscrire à DrupalFrance.com RSS