Add/change sliced_init_pdf *filter* (from action)
There currently is a sliced_init_pdf *action*, but eg. to add a template to a pdf it’s needed to return the pdf instance back to the method.
Using a sliced_init_pdf *filter* should make this possible (the filter returning the mpdf instance).
1 Comment. Leave new
No, it’s not necessary. sliced_init_pdf passes in the $mpdf object as an argument. Any changes you make to $mpdf will still be there when you get back to the method. There is no need to return it.