Dompdf\Dompdf::setCallbacks
Sets callbacks for events like rendering of pages and elements.
The callbacks array contains arrays with 'event' set to 'begin_page', 'end_page', 'begin_frame', or 'end_frame' and 'f' set to a function or object plus method to be called. The function 'f' must take an array as argument, which contains info about the event.
Signature
public function setCallbacks(array
$callbacks )
Parameters
$callbacks
— array- the set of callbacks to set