execute_print
execute_print($path); - this function is used to process the print dialog to a file. (Available from version 4.10.2)
The function accepts parameters as input:
$path – the path where the printed file will be written .
After processing, the function returns the result of its work to the script :
true – processing was successful.
false – errors occurred.