How to disable or hide Acrobat reader bookmarks bar in winform?

I display PDF documents in my application using Acrobat ActiveX. I want to know whether it is possible to disable or hide bookmarks (and pages, search, comments, attachments to the left of the panel) in PDF-Adobe Reader when showing pdf?

+5
source share
3 answers

I hope this helps you.

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

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

+3
source

I searched a lot for the answer to this question, and the best I could find is explained in this post:
NorthCode Forum Post

, , PageMode , . . , , , , , .

, , , ...

+1

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

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

In addition, you can add other properties separating "&"

0
source

All Articles