Add/change sliced_init_pdf *filter* (from action)

December 11, 2018
Joost de Keijzer

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

Sliced Invoices
December 11, 2018 8:12 pm

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.

Leave a Reply

Your email address will not be published.