从我的ActiveX禁用Adobe Reader的工具栏 [英] Disable Adobe Reader toolbar from my ActiveX

查看:3947
本文介绍了从我的ActiveX禁用Adobe Reader的工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用AxAcroPDFLib和iTextSharp的图书馆我的ActiveX加载PDF文档。我想从加载PDF禁用工具栏(即有保存,打印等选项),使用户无法保存的PDF从的ActiveX。

I am loading a PDF document in my ActiveX using AxAcroPDFLib and iTextSharp libraries. I want to disable the toolbar (that have Save, Print etc options) from the loaded PDF so that user cannot 'Save' the PDF from ActiveX.

我有以下code:

axAcroPDF1.Width = someWidth;
axAcroPDF1.Height = someHeight;
axAcroPDF1.LoadFile(documentPath);
axAcroPDF1.setPageMode("none");
axAcroPDF1.setShowToolbar(false);

axAcroPDF1.Show();
axAcroPDF1.Focus();

axAcroPDF1.setShowToolbar(假)禁用工具栏,但其他灰色的工具栏,在底部(的所示的PDF图上这个环节)当我移动鼠标在这方面。该工具栏还可以选择保存在它的选择,我想禁用该之一,也是。

The axAcroPDF1.setShowToolbar(false) disables the toolbar but the other gray toolbar enables at the bottom ( as shown in figure on this link) of PDF when I move mouse in that area. That toolbar also have saving option in it and I want to disable this one as well.

这将是非常好的,如果它允许禁止只保存选项,并保持工具栏上启用的其他选项。

It would be really nice if it allows to disable only 'Save' option and keep the other options enabled on toolbar.

推荐答案

您所要求的东西是不可能的。请仔细阅读本线程的历史可以追溯到2011年12月。你会发现一个片段,其中伦纳德Rosenthol,Adobe的PDF建筑师说:有没有办法隐藏工具栏(或HUD)在浏览器中

You are asking something that is impossible. Please read this thread dating from December 2011. You'll find a snippet where Leonard Rosenthol, Adobe's PDF architect says: "there is no way to hide the toolbar (or the HUD) in the browser."

设置工具栏的工具栏虚假的作品,但你指的是抬头显示器(HUD)。作为记录由Adobe,有没有办法来定制这个功能,让我的报价的Adobe

Setting the toolbar to false works for the toolbar, but you are referring to the "Heads Up Display" (HUD). As documented by Adobe, there is no way to customize this feature, let me quote Adobe:

在抬头显示器(HUD)不可自定义。有没有API来   HUD。您不能使用JavaScript来进入阅读模式,退出读取模式或   检测该文件是在读模式。虽然它看起来像   这,这不是一个疏忽。有一些非常完善的工程   原因是这样的话,但我不会去为那些在这里。

the "Heads Up Display" (HUD) is not customizable. There are no APIs to HUD. You can’t use JavaScript to enter Read Mode, exit Read Mode or detect that the document is in Read Mode. Though it might seem like it, this wasn’t an oversight. There are some very sound engineering reasons why this is the case but I won’t go into those here.

这篇关于从我的ActiveX禁用Adobe Reader的工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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