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

CommentFileSizeAuthor
print-drupal-mpdf-drupalalter.patch834 byteschrisns

Comments

jcnventura’s picture

Status: Needs review » Fixed

Thanks 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.