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.