Is it possible to print a PDF file using PHP? How?
I do not want to show any dialog or anything, I just want to execute the PHP file and make it print a PDF file for me.
The PHP file will be executed server side.
Is it possible to print a PDF file using PHP? How?
I do not want to show any dialog or anything, I just want to execute the PHP file and make it print a PDF file for me.
The PHP file will be executed server side.
This is possible, I did this as an addition for an internal system.
The approach that I done was done using the brother printer drivers (because the printers inhouse was of the brother manufacturer).
The operating system that developed on was a Linux Redhat server. So I would check the printers manufacturer website to see if there is drivers available on either a windows or linux solution, read the documentation and perform a exec();
call using the correct parameters.
No you can't (in the browser).
In that case, you can either:
You can on the server, using shell_exec()
/exec()
as has been pointed out in another answer, but doing so isn't easy as servers won't necessarily have the required drivers (or network capacity) to do so.