print icons

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)
  • EPUB version (at www.example.com/printepub/nid)
  • Send by email (at www.example.com/printmail/nid)

where nid is the node id of content to render.

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

Drupal 8 roadmap

This module will not be ported to Drupal 8, since 'print' is a PHP reserved keyword. For alternatives, look at the following options:

Printer, email and PDF versions for Drupal 8
This module was the first attempt at a direct successor of this module. It is a complete re-write from scratch, and offers only PDF export for now, but the original plan was to support the printer-friendly pages, send by email, etc.
Entity Print
Entity print is the most popular alternative, and focuses on the 'offline format export functionality.

print templates from 1.x branch are not compatible with 2.x

The 2.x versions of the print module use a redesigned template. The old templates from the 1.x branch will not be compatible, and must either be adapted or deleted. See the release notes for 7.x-2.0 for further details.

Server IP address information leak notice

Note that in order for these libraries to generate exportable formats, the web server itself will have to build the page. This may leak information to external servers like the server IP address. Look into PHP's allow_url_fopen configuration on how to prevent that.

You must install one of the following third-party tools to generate PDFs:

Or one of these extra PDF generation modules:

You must install the following third-party tool to generate EPUBs:

  • PHPePub (only in the 7.x-2.x branch)

Please follow the instructions in the INSTALL.txt files carefully.

#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

Releases