I would like to use PHP to print a local pdf file on the server to a printer connected to the server. I have been looking at the printer extension for PHP, but I can't quite figure out how to make that print the pdf. The pdf file was originally created by the server using FPDF. Bottom line, *when* a new pdf is created, it should print out immediately. Any thoughts on how to make that happen, especially with the printer extension? [uk2.php.net...]
looks like that extension only prints data, not files. there are functions that will read the contents of a file (i think its called readfile()); use that to read the content of the pdf, stick it in a $variable and use that in the printer function.
no idea if that will work, but thats what id try first. shouldnt be more than 2-3 lines of code