Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script not working after update - Acrobat Reader DC

New Here ,
Aug 16, 2017 Aug 16, 2017

Acrobat Reader DC v2017.012.20095

Windows 10 v10.0.15063

I have a script "PrintFilename.js" in the following folder:

C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\Javascripts

The script adds a menu item and looks like this:

app.addMenuItem({cName:"Show Filename", cParent:"File", nPos:20, cExec:"AddFilename();"});

function AddFilename()

{

var re = /.*\/|\.pdf$/ig;

var MyFileName = this.path.replace(re,"");

for (var p = 0; p < this.numPages; p++)

{

var fd = this.addField("MyFilenameField", "text", p, [18,825, 500,840]);

fd.textSize=10;

fd.textColor = color.blue;

fd.value = MyFileName;

}

}

Last time I used it was on July 1st but now that I want to use the menu item I realise that it is no longer there. So something has happened after an update between July 1st and now. Either the script does not fire, or the code has stopped working.

Any ideas?

2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 16, 2017 Aug 16, 2017

Check the JS file is still there. Also, check that there isn't a new JavaScripts folder created for the new version.

And check that the JavaScript preferences didn't change and especially that "Enable menu items JavaScript execution privileges" is ticked.

Translate
Community Expert ,
Aug 16, 2017 Aug 16, 2017

Check the JS file is still there. Also, check that there isn't a new JavaScripts folder created for the new version.

And check that the JavaScript preferences didn't change and especially that "Enable menu items JavaScript execution privileges" is ticked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 16, 2017 Aug 16, 2017
LATEST

Yes!

"Enable menu items JavaScript execution privileges" had been unchecked! A million thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 16, 2017 Aug 16, 2017

We have similar problem after last update - about 8/8/2017. We did downgrade to Reader XI and all was OK. After last update of XI on version 11.00.21 we have the same problem (about 8/13/2017). Second reinstall to base version of Reader XI solved problem (except security problem :-)).

  • In some cases Reader totally crash.
  • We detected problems in Reader which is used inside Adobe LiveCycle Workspace (UI for process management)
  • JavaScripts are enabled.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines