使用内部网络,是否可以静默打印文档?
我有一位客户在其大堂设有触摸屏信息亭。它本质上是一个内部 html 网站。他们希望客户能够单击链接并进行 pdf 打印,而无需看到打印对话框或必须回溯...完全不引人注意的打印。
我阅读了文章并尝试了代码片段近一年,但没有找到信誉良好的解决方案。有些人正确地警告安全漏洞或根本无法做到这一点。
客户的旧触摸屏结构完全是用 Flash 制作的,我正在避免这样做。但是,他们成功了。我确信这个问题已经被问过一千次了,但这真的不可能吗?
当前运行触摸屏的CPU是Windows XP。他们确实有一个工作密切的 IT 人员,但我不知道该问什么。他从未提供任何其他解决方案。
谢谢
I have a client that hosts a touch screen kiosk in their lobby. It's essentially an internal html website. They want customers to be able to click a link and have a pdf print without seeing a print dialog or having to back track... completely unnoticeable printing.
I have read articles and tried snippets of code for almost a year without finding a reputable solution. There are those out there that rightly warn of security breaches or that it cannot be done at all.
The client's old touch screen structure was made entirely in Flash which I am avoiding. BUT, they were able to pull this off. I am sure this question has been asked a thousand times, but is it really impossible?
The current CPU running the touch screen is Windows XP. They do have an IT guy that works close, but I am not sure what to ask. He never offered any other solutions.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不能 100% 确定您要完成的任务,但也许您可以触发服务器端程序运行,而不是依赖信息亭本身来处理打印。您可以配置服务器将这些 PDF 请求直接发送到打印机。
Not 100% sure what you're trying to accomplish but maybe you could trigger a server-side program to run instead of relying on the kiosk itself to handle the printing. You could configure the server to send these PDF requests straight to the printer.
也许你可以为他们制作一个自定义浏览器(例如使用 webkit),无需询问即可打印。
Maybe you can bake a custom browser for them (using webkit for example) that prints without asking.
以 kisok 模式运行的 Chrome,以 --kiosk 和 --kiosk-printing 开关启动并设置默认打印机,可以使用 javascript print() 以静默方式打印。
AFAIK 仅限 Windows。
Chrome running in kisok mode, started with the --kiosk AND --kiosk-printing switches and with a default printer set, can print silently using javascript print().
This is Windows only AFAIK.