Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Install
Works with Drupal: 7.xUsing 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:
- Code styling fixes.
- Filter scripts in dompdf only, since that is the vulnerable one.
- #2194825 by das-peter, k.skarlatos, Jelle_S, enboig, jcnventura: wkhtmltopdf option to use temporary input file
- #2349177 by jackbravo, jcnventura: Improve instructions for wkhtmltopdf
- #1813390 by jlyon, ergonlogic: Detect and use system level wkhtmltopdf binary
- #2847986 by anrikun, jcnventura: Attribute content of meta tag robots lacks double quotes
- #2942110 by darksnow, jcnventura: Should set group of drupal.js
- #3004237 by jcnventura: escapeshellcmd escapes the [page] token and breaks page numbering
- #3004639 by jcnventura: dompdf version warning displayed when other pdf libraries are active
- #3004236 by jcnventura: Send by email not working
- #2629668 by jcnventura: Fix epub generation with PHPePub >= 4.0
- #2915691 by ctrnz, jcnventura: PDF cache is not language aware
- #2348737 by sangus, jcnventura: Data too long for column 'path'