如何在服务器上使用php在客户端打印机上打印 [英] how to print on client printer from server using php

查看:199
本文介绍了如何在服务器上使用php在客户端打印机上打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在客户端计算机上使用php(php也在服务器上运行)打印pdf文件(pdf文件在服务器上)。



我如何



感谢您提供帮助

解决方案

请直接执行此操作,因为php / apache服务器运行在完全不同于浏览器/客户端的计算机(也许是地理位置)上。



但是您可以使用中间解决方案,例如安装在客户端计算机上的专用自定义应用程序,用于与服务器通信并请求打印文件,例如




    。这些应该以某种方式或另一个
  • 浏览器插件的跨平台,每个可能的浏览器单独的插件,如果它可以支持插件:)


  • 服务器连接到客户端计算机打印机(客户端必须首先共享打印机)


  • 所有这些只是丑陋的黑客,与一个设计不当的应用程序/工作流程结合使用应用程序,所以如果你真的想要非常小心...


    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

    • 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

    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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆