How to hide the menu bar of Acrobat DC using JS?

Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

Not when opening a file, but when opening a program?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

453

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to hide the menu bar of Acrobat DC using JS?

Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

Not when opening a file, but when opening a program?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

454

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 21, 2018 0
Most Valuable Participant ,
Nov 21, 2018

Copy link to clipboard

Copied

Create a folder-level script with this code:

app.toolbar=false;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

I created the file "HideMenuBar.js" in the folder "c:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts\" with the line "app.toolbar = false;", launched Acrobat DC, but the menu was not hidden.

ScreenShot - 7.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Most Valuable Participant ,
Nov 21, 2018

Copy link to clipboard

Copied

Works fine in Acrobat XI... Maybe it's (yet another) thing that not working correctly in the DC version.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

Perhaps I need somewhere else in the settings to activate?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Most Valuable Participant ,
Nov 21, 2018

Copy link to clipboard

Copied

Well, you need to make sure that JavaScript is enabled, and maybe also disable the Protected View (under Edit - Prefs. - Security (Enhanced).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

Like this?

If so, it still does not work.

But if this is a possible DC error, then okay

ScreenShot - 9.png

ScreenShot - 10.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Most Valuable Participant ,
Nov 21, 2018

Copy link to clipboard

Copied

Try ticking the "Enable menu items..." box in the second screenshot.

If that doesn't work I'd say it's either a bug or an undocumented change in the capabilities of the script.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

No, it's not working.

PS. Thanks for help. I will waiting of fix this bug

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Most Valuable Participant ,
Nov 21, 2018

Copy link to clipboard

Copied

You should report it here: Feature Request/Bug Report Form

I wouldn't hold my breath waiting for it to be fixed, though.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0
Community Beginner ,
Nov 21, 2018

Copy link to clipboard

Copied

Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 21, 2018 0