简体   繁体   English

将PDF文件从Web服务器(php)发送到客户端PC进行打印

[英]Sending PDF file from webserver (php) to client PC for printing

I have sushi online webshop, when orders are made i would like to have a PDF file sendt from the webserver to a computer in the restaurant that automaticly prints the document. 我有寿司在线网上商店,下订单后,我希望将PDF文件从网络服务器发送到自动打印文件的餐厅中的计算机上。

Today i use dropbox to achive this and a script on the restaurant computer to scan the dropboxfolder for new documents. 今天,我使用保管箱来实现此目的,并使用餐厅计算机上的脚本来扫描保管箱文件夹中是否有新文档。 This works, but if there are problems with the dropbox service it breaks, and the sniffing script is a bit unreliable (sometimes prints multiple copies). 这可以工作,但是如果Dropbox服务出现问题,它将中断,并且嗅探脚本有点不可靠(有时会打印多个副本)。

The perfect solution would be a small client program/prosess that runs on the restaurant computer and can receive the PDF file from the webserver and print it. 完美的解决方案是在餐厅计算机上运行的小型客户端程序/程序,并且可以从网络服务器接收PDF文件并进行打印。

Is there any easy way to achive this? 有没有简单的方法可以达到这个目的?

Google offers Cloudprint ; Google提供Cloudprint allowing you to directly connect to your printer (via or without your restaurant computer, depending on the type of printer). 允许您直接连接到打印机(通过或不通过餐厅计算机,具体取决于打印机的类型)。 They have some code online available demonstrating the available options to write software that connects to Cloudprinter. 他们在线提供了一些代码,展示了编写连接到Cloudprinter的软件的可用选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM