I want to print a pdf file(pdf file is on server) using php (php is also running on server) on client computer.
How can I do this.
Thanks in advance for you help
I want to print a pdf file(pdf file is on server) using php (php is also running on server) on client computer.
How can I do this.
Thanks in advance for you help
You cannot do this directly, as the php/apache server runs on a completely different computer(and maybe geographic location) than the browser/client.
You can however use intermediate solutions, like
All these are just ugly hacks, used in conjunction with a badly designed application/workflow in that application, so be very carefull if you really want this...
As the PHP-printer methods are only available on Win-systems, you should use the methods, which are provided for printing by the underlying OS (e.g. some Liunx distro) and call the accordant shell-commands from PHP.
But of course you can!!!
What I would do is to open up the page in the client's browser and have javascript prompt the user to print the document out. hope this helps