4 This module allows you to generate the following printer-friendly versions
7 * Web page printer-friendly version (at www.example.com/print/nid)
8 * PDF version (at www.example.com/printpdf/nid)
9 * Send by-email (at www.example.com/printmail/nid)
11 where nid is the node id of content to render.
13 A link is inserted in the each node (configurable in the content type
14 settings), that opens a version of the page with no sidebars, search boxes,
15 navigation pages, etc.
20 Follow the instructions in the provided INSTALL.txt file.
25 - There are several settings that can be configured in the following places:
27 Administer > Modules (admin/modules)
28 Enable or disable the module. (default: disabled)
30 Administer > People > Permissions (admin/people/permissions)
32 access print: Enable access to the PF page and display of the PF link in
33 other pages. (default: disabled)
34 administer print: Enable access to the module settings page. (default:
37 Administer > Structure > Content types (admin/structure/types)
38 For each content type it is possible to enable or disable the PF link
39 via the "Show printer-friendly version link" checkbox. (default:
41 It is also possible to enable or disable the PF link in individual
42 comments via the "Show printer-friendly version link in individual
43 comments" checkbox. (default: disabled)
45 Administer > Configuration > Printer, e-mail and PDF versions (admin/config/user-interface/print)
46 This is where all the module-specific configuration options can be set.
48 - To modify the template of printer friendly pages, simply edit the
49 print.tpl.php or the css/print.css files.
51 - It is possible to set per-content-type and/or theme-specific templates
52 which are searched for in the following order:
53 1. print_[format].node-[type].tpl.php in the theme directory
54 2. print_[format].node-[type].tpl.php in the module directory
55 3. print_[format].tpl.php in the theme directory
56 4. print_[format].tpl.php in the module directory
57 5. print.node-[type].tpl.php in the theme directory
58 6. print.node-[type].tpl.php in the module directory
59 7. print.tpl.php in the theme directory
60 8. print.tpl.php in the module directory (supplied by the module)
62 format is either html, mail or pdf, and type is Drupal's node type (e.g.
68 print_insert_link(), print_mail_insert_link(), print_pdf_insert_link()
70 The *_insert_link functions are available to content developers that prefer
71 to place the printer-friendly link in a custom location. It is advisable to
72 disable the regular Printer-friendly link so that it is not shown in both
75 Calling the function like this:
79 will return the HTML for a link pointing to a Printer-friendly version of
82 It is also possible to specify the link to the page yourself:
84 print_insert_link("print/42")
86 will return the HTML pointing to the printer-friendly version of node 42.
91 The following themeable functions are defined:
93 * theme_print_format_link()
94 * theme_print_mail_format_link()
95 * theme_print_pdf_format_link()
96 Returns an array of formatted attributes for the Printer-friendly
99 * print_pdf_dompdf_footer($html)
100 Format the dompdf footer contents
102 * print_pdf_tcpdf_header($pdf, $html, $font)
103 Format the TCPDF header
105 * print_pdf_tcpdf_page($pdf)
106 Format the TCPDF page settings (margins, etc)
108 * print_pdf_tcpdf_content($pdf, $html, $font)
109 Format the TCPDF page content
111 * print_pdf_tcpdf_footer($pdf, $html, $font)
112 Format the TCPDF footer contents
114 * print_pdf_tcpdf_footer2($pdf)
115 Format the TCPDF footer layout
120 For more information, consult the modules' documentation at
121 http://drupal.org/node/190171.
125 The print, pdf and mail icons are copyright Plone Foundation. Thanks for