如何在服务器上使用php在客户端打印机上打印 [英] how to print on client printer from server using php
问题描述
我要在客户端计算机上使用php(php也在服务器上运行)打印pdf文件(pdf文件在服务器上)。
我如何
感谢您提供帮助
请直接执行此操作,因为php / apache服务器运行在完全不同于浏览器/客户端的计算机(也许是地理位置)上。
但是您可以使用中间解决方案,例如安装在客户端计算机上的专用自定义应用程序,用于与服务器通信并请求打印文件,例如
- 浏览器插件的跨平台,每个可能的浏览器单独的插件,如果它可以支持插件:)
- 服务器连接到客户端计算机打印机(客户端必须首先共享打印机)
- proprietary, custom applications installed on the client's computer that "talks" to the server and requests files to be printed. These should be cross-platform in some way or another
- browser addons, separate addon for every possible browser, if it can support addons:)
- special "pdf" viewers, that cannot actually view, but only prints pdf's, installed on the client's computer.
- the server connects to the clients computers printer(the client has to share the printer first though) and tries to print through it
。这些应该以某种方式或另一个
所有这些只是丑陋的黑客,与一个设计不当的应用程序/工作流程结合使用应用程序,所以如果你真的想要非常小心...
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...
这篇关于如何在服务器上使用php在客户端打印机上打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!