Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download print-7.x-2.1.tar.gztar.gz 82.5 KB
MD5: 1dd98434ccd49814aea0edf0d10fd65b
SHA-1: ca6ec34bdfa655a8d42228a2aa531153320143f6
SHA-256: 864952bdb698bb0754c959ccfe510245e27e81be4c01811b1c569a94b5e81942
Download print-7.x-2.1.zipzip 126.3 KB
MD5: 0ed2b722e635061b15158a5e66134723
SHA-1: 77ca2c4a1b6fcfed6d8e3efcce4f8df061ecb78e
SHA-256: eeed2bf7fd158b6d7545d5b105aaecc224d567d35e50e90b3f4c27c79ea2946c

Release notes

Fixes Printer, email and PDF versions - Highly critical - Remote Code Execution - SA-CONTRIB-2018-063

This 2.0 release marks the completion of the main objectives of the 7.x-2.x branch:

  • Refactoring of all the link handling code to a separate sub-module: print_ui (if you don't enable this module, you will still be able to acess the printer-friendly pages directly at their URLs, but you won't get any module-generated links)
  • Removal of the print array and of all hard-coded HTML code that was used in the old print.tpl.php to a print.tpl.php that is more inline with a normal Drupal template and to some themeable functions.
  • Creation of a pluggable system for the print_pdf module, that can be used to easily add more PDF libraries.
  • Refactoring of the dompdf, tcpdf and wkhtmltopdf to separate sub-modules (print_pdf_dompdf, print_pdf_tcpdf and print_pdf_wkhtmltopdf).
  • Creation of the print_pdf_module which generates PDfs using the mPDF library.
  • Creation of a new export format (EPUB) using the new print_epub module, which uses the PHPePub library to create EPUB files. Support for EPUB libraries is also pluggable, and PHPePub is handled in the new print_epub_phpepub sub-module.

Word of caution:

  • The new template differs radically from the previous one. If you had custom print templates, you'll probably need to re-write them.
  • The node visibility settings was removed, as this is beter handled via the already existing node-specific settings. If you relied on that one, prior to upgrading the module make a list of the affected nodes. At the moment there's no database upgrade function to keep those settings.
  • The module has changed some of the internal APIs.. If you were calling them directly, take a look at the new API documentation. Specifically, the PDF generation from HTML no longer takes a 'print' array as the first argument, using instead a much smaller 'meta' information array as the second argument.
  • Most of the custom text replacement was removed.. Use of the "String Overrides" module for most of those is recommended.
  • The print_mail pre and post hooks were removed for now. If they're replaced, they'll probably provide different capabilities.

Changes since 7.x-2.0:

Created by: jcnventura
Created on: 3 Oct 2018 at 17:45 UTC
Last updated: 26 Jan 2022 at 20:49 UTC
Security update
Bug fixes
Insecure

Other releases