Closed (fixed)
Project:
Printer, email and PDF versions
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2012 at 12:54 UTC
Updated:
19 Jul 2013 at 10:51 UTC
Please find proposed patch to allow altering the mpdf object via drupal_alter
I needed to do this to allow passwords to be set on the generated pdfs.
Figured it useful to share, it would be nice if it could be given a greater understanding of the context, but this will cater for my immediate requirements as I can pump decision making stuff into the $meta array (e.g. which user's key to password protect with)
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| print-drupal-mpdf-drupalalter.patch | 834 bytes | chrisns |
Comments
Comment #1
jcnventuraThanks for the patch.. I've committed it to git.. Note that I changed the name of the called alter hook to "print_pdf_mpdf" to properly respect the Drupal contrib namespace.