Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download print-7.x-2.2.tar.gztar.gz 83.37 KB
MD5: 07052affba558935caec559d32a723dc
SHA-1: 508e25cd8507d9f642271215457e258f3a0799df
SHA-256: 74d5f4b9f24ed9972fd3b9ceccae45ad23f516b962a91b0731394dad53c02832
Download print-7.x-2.2.zipzip 127.43 KB
MD5: bef5b36f5f75648cf9f15eed8bb07803
SHA-1: 2081e1fd9604b612e13a74fc22f8a3e0769b5d83
SHA-256: fc5b4df06c63f53202afbc5a55f46cb6f87714c3eb76d2ec6dbef4bfa72265c9

Release notes

This release fixes a few important bugs introduced in 7.x-2.1, regarding PDF, EPUB and by-email functionality, and some other long-standing bugs.

The 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_mpdf 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.1:

Created by: jcnventura
Created on: 5 Oct 2018 at 17:18 UTC
Last updated: 26 Jan 2022 at 20:49 UTC
Bug fixes
Insecure

Other releases