I am trying to print pdf document from php code but error shows
warning printer_write() couldn't allocate the printerjob 3003.
Here my code
$printer = ("Printername");
if($ph = printer_open($printer))
{
$file = file_get_contents('test.pdf', FILE_USE_INCLUDE_PATH);
printer_write($ph, $file);
printer_close($ph);
}
else
{
"Couldn't connect...";
}
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.