Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download print-7.x-2.0.tar.gztar.gz 94.49 KB
MD5: 5e5cef97acc0135bf0debefa82f3c4f8
SHA-1: b3baf7908e41458b04340eb39c2feb5af12be2eb
SHA-256: 37408dde233dcefa90720ce0c1e1b0742fb5e8e673966d6ac7166737e525fdfd
Download print-7.x-2.0.zipzip 134.19 KB
MD5: 32ef759ea1171b6dcb80acb9dd1c68a0
SHA-1: 88b43d83e8e6362795a50987287d92ed7cd8ce65
SHA-256: 5b9d7dd561761c3b28b1f2470b74441d7951abc6ef6016643bd18de51b8464ea

Release notes

Fixes SA-CONTRIB-2014-036 - Print - Cross Site Scripting

This 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.0-beta2:

  • #1940732: apply filters to the in-page anchor tags.
  • Support latest PDF tool versions in the drush download command.
  • #2171901 by c960657: remove 'Powered by TCPDF' link.
  • #2103095 by CarlHinton, alexandrezia: prevent warning on failure to create pdf cache directory.
  • #2085169 by jwilson3: fix dompdf unicode support.
  • #2001778 by edvanleeuwen: fix empty ePubs.
  • #1865562 by Mat77: fix PDF errors when print-site_name is removed from the template.
  • #1941772: provide more watchdog info in case of wkhtmltopdf errors.
  • #1984106: Clear tokens when value is not available.
  • #1907080: remove contextual links from non-content pages.
  • #1884144: fix Constant already defined notices.
  • #1926982: Use better pattern to remove image query strings from the URL.
  • #1842712: Fix Views join handler.
  • #1882966: Remove the reset button on the send by email form.
  • #1927110: Increase path field size in *_page_counter to 255.
  • #1774298: Rename PrintTCPDF::SetFooterData function to PrintTCPDF::setFooterContent to avoid conflict with one with the same name introduced in TCPDF 5.9.174.
  • Add drupal_alter call to print_mail before email is sent.
  • #1929598: Enable print_ui module on upgrade.
  • #1959482: Enable the PDF generation sub-module on update.
  • #2021613: Specify dependency on node module.
  • #1897648 by siliconmeadow: Show token help in the wkhtmltopdf settings page again.
  • #1986478: add support to TCPDF v6.
  • #1857172 by paulgrand: add drupal_alter call to print_pdf_tcpdf.
  • #1820736 by chrisns: add drupal_alter call to print_pdf_mpdf.
  • Update MPDF drush to download the latest version.
  • #1911546: restore PDF module name line removed by mistake.
  • Use optimized PNG images.
  • #1806282: fix TCPDF cache path location bug.
  • #1804436: fix PHP notices when using print_join_page_counter
  • #994564: use PHP authentication with wkhtmltopdf when available.
  • #1895040: fix some notices when the print node fields are set to NULL.
  • #1931744: fix typo in PDF tool not found message.
  • #1911546: remove unneeded files lines from the .info files
  • #1780220 by weri: only translate non-node titles in mail form.
  • #1775314: custom join handlers were broken.
Created by: jcnventura
Created on: 2 Apr 2014 at 08:19 UTC
Last updated: 16 Oct 2018 at 08:02 UTC
Security update
Bug fixes
New features
Insecure

Other releases