禁用在自助服务终端模式计算机上运行的浏览器中打印PDF的可能性 [英] Disable the possibility to print a PDF in a browser running on a kiosk-mode computer

查看:158
本文介绍了禁用在自助服务终端模式计算机上运行的浏览器中打印PDF的可能性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,它将在网页浏览器(Firefox或Chrome)中使用。
这个应用程序的一部分将显示PDF。但是,使用标准的PDF查看器,还有一些功能,包括我不希望用户拥有的功能(例如打印,保存到磁盘,...)。
我找到这个关于一个可定制的PDF查看器的伟大项目。这使我可以限制用户的可能性。现在我想知道是否有可能在谷歌浏览器中实现相同的功能。到目前为止,我还没有发现任何有关定制Chrome浏览器的标准PDF查看器。有没有人知道如何做到这一点,或知道像我找到了一个mozilla的定制浏览器?感谢您。

更新: 浏览器将以信息亭模式,所以除了浏览网页(没有地址栏,没有菜单,没有任何东西),用户将无法访问任何功能。此外,由于应用程序将在触摸屏上使用,因此不会出现任何键盘。



更新2:



首先,为什么这个问题已经从程序员转移到了stackoverflow?当我在这里问这种开放的问题时,他们会立即关闭。感谢downvote。我猜,对于人来说,用三行代码来回答的问题太难了。第二,关于PDF的打印:
I看到有人提到打印PDF文件的方法。用户将没有任何可用的选项,因为:


  • 在系统的最终设置中不会有打印机可用。 >
  • 没有键盘或鼠标,只有一个(有限)的触摸界面。
  • 网页将不能从除了所在位置以外的任何地方获得。
  • li>
  • 用户将无法访问底层操作系统。


    禁用打印功能不难,但我不希望用户认为他可以打印。如果打印图标保留在PDF阅读器上,用户点击它并没有任何反应,这会导致沮丧和恼怒。通过只显示实际工作的按钮,将会带来更好的使用应用程序的体验。

href =http://flexpaper.devaldi.com/default.jsp =nofollow> FlexPaper 。通过命令行或其他方式自定义UI控件和转换PDF 文件。大部分信息都在 FlexPaper文档中。



有些参数可以禁用功能,也可以删除按钮。

例如

  {
PrintToolsVisible:false,
PrintEnabled:true
}

似乎缺少一些来自因为根据此主题这是在他们的wiki ,但后来被感动了到他们的网站,也许有些信息被遗忘了,但是他们显然是在源代码中。


I'm developping an application which will be used inside a web browser (Firefox or Chrome). One part of this app will display a PDF. However, with the standard PDF viewers, there are some functionalities included that I don't want the user to have (e.g. print, save to disk, ...). I've found this great project about a customizable pdf viewer for mozilla. This allows me to restrict the user's possibilities. Now I'm wondering if it's possible to achieve the same in Google Chrome. So far I haven't found anything about customizing the standard PDF viewer of Chrome. Is there anyone who knows a way to do this, or knows a customizable viewer like the one I've found for mozilla? Thank you.

Update:

The browser will run in kiosk mode, so the user will not have access to any function other than viewing a web page (no address bar, no menu, nothing). Also, no keyboard will be present, since the application will be used on a touch screen.

Update 2:

First of all, why has this question been moved from programmers to stackoverflow?? When I ask this type of 'open' questions here, they get closed instantly. Thanks for the downvote. I guess, for people, questions that can't be answered with 3 lines of code are too hard.

Second, concerning the printing of PDF: I see some people mentioning ways to print PDF files. The user will have none of these options available because:

  • There will be no printers available in the eventual setup of the system.
  • There will be no keyboard or mouse, only a (limited) touch interface.
  • The webpage will not be available from anywhere except the intented location.
  • The user will not be able to access the underlying OS.

Disabling the ability to print is not hard, but I don't want the user to think he can print. If the print icon remains on the PDF viewer, the user clicks it and nothing happens, this will lead to frustration and irritation. By showing only the buttons that actually work, will lead to a better experience of using the application.

解决方案

You could implement FlexPaper. Customize the UI controls and convert your PDF files via command line or other means. Most of this information is in the FlexPaper docs

There are parameters to disable functionality and remove the buttons also.

For example

{
 PrintToolsVisible : false,
 PrintEnabled : true
}

Seems like there is missing some information from the site because according to this thread it was in their wiki but then got moved to their web site and maybe some information got forgotten but they are clearly in the source code.

这篇关于禁用在自助服务终端模式计算机上运行的浏览器中打印PDF的可能性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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