Dompdf\Adapter\CPDF::page_script
Processes a script on every page
The variables $pdf, $PAGE_NUM, and $PAGE_COUNT are available. This function can be used to add page numbers to all pages after the first one, for example.
Signature
public function page_script(string
$code,
[string
$type = "text/php"] )
Parameters
$code
— string- the script code
$type
— string- the language type for script