5

我正在使用 Acrobat ActiveX 在我的应用程序中显示 PDF 文档。我想知道在显示pdf时是否可以在PDF adobe阅读器上禁用或隐藏书签(以及面板左侧的页面、搜索、评论、附件)?

4

3 回答 3

4

我希望这会对你有所帮助。

// load pdf file
viewer.LoadFile(somePath);
// hide top toolbar
viewer.setShowToolbar(false);
// hide navigation bar
viewer.setPageMode("none");

“查看器”是来自 Adob​​e Reader (AcroPDFLib) 的 ActiveX 控件。

于 2012-10-24T09:23:21.420 回答
3

解决方案是添加“#toolbar=0”结束路径文件,像这样

axAcroPdf1.scr="c:/mifile.pdf"+"#toolbar=0" 

此外,您可以添加其他用“&”分隔的属性

于 2017-06-03T15:21:36.193 回答
1

I searched a lot for an answer to this one, and the best I could find is explained in this post :
NorthCode forum post

Basically, it seems that you can only change the PageMode with this command, but not control the visibility of the panel. This must be done within the interface. It says that the value is remembered if you hide it manually, so in theory it would be hidden when you open the viewer again, but I couldn't make it work.

I finally gave up trying to hide it...

于 2013-03-21T19:07:38.050 回答