How to disable or hide acrobat reader bookmarks panel in winform?
Asked Answered
R

3

5

I'm showing PDF documents in my application using Acrobat ActiveX. I want to know is it possible to disable or hide Bookmarks(and Pages,Search,Comments,Attachments in left of panel) on PDF adobe reader when showing pdf?

Rasia answered 15/4, 2012 at 21:15 Comment(1)
Are you trying to toggle it while the Adobe Reader is already running? Is this for all instances of Adobe Reader? Or do others need to have Bookmarks showing?Nari
T
4

I hope that will help you.

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

'viewer' is ActiveX control from Adobe Reader (AcroPDFLib).

Tidewater answered 24/10, 2012 at 9:23 Comment(1)
Thank's, but this still display that. I can't hide it!Rasia
N
3

the solution is to add "#toolbar=0" ending path file, like this

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

Also, you can add other properties seperating with "&"

Nebulous answered 3/6, 2017 at 15:21 Comment(1)
Unbelievable, it works. I searched and tried many ways, but not success. Thank you.Indies
O
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...

Occidental answered 21/3, 2013 at 19:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.