print_to_pdf
print_to_pdf($filepath); - write the current page to a pdf file (available from version 6.0.41)
the input Function accepts parameters:
$filepath – path to the file where the page will be saved
After testing, the function returns the result of its work to the script :
true – managed to save the page to the specified filefalse – failed to save the page to the specified file