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

var dc = sh.directories[0].connect(); is not able to connect it is throwing error like

New Here ,
Oct 06, 2016 Oct 06, 2016

Directory.connect:24:Batch undefined:Exec

Connection could not be established. Check your directory configuration settings.

Your help needed to solve this issue

my code

var sh = security.getHandler("Adobe.PPKMS");

// Connect to the directory containing the user certificates:

var dir = sh.directories[0];

var dc = dir.connect();

// Search the directory for certificates:

dc.setOutputFields({oFields:["certificates"]});

var importantUsers = dc.search({oParams:{lastName:"Smith"}});

var otherUsers = dc.search({oParams:{lastName:"Jones"}});

// Allow important users full, unrestricted access:

var importantGroup = {

userEntities: importantUsers,

permissions: {allowAll: true}

};

TOPICS
Acrobat SDK and JavaScript , Windows
406
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
Adobe Employee ,
Oct 09, 2016 Oct 09, 2016

Hi ashwiniv81309791

Could you please let me know what you are trying to accomplish?

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 ,
Oct 10, 2016 Oct 10, 2016
LATEST

I am creating a pdf from excel and I want to make sure that no one can copy edit and if they want to edit the pdf, it will ask the password.I have adobe acrobat pro and I have seen there are some methods which are available in the adobe pdf but the below method throwing error when i am running in the java script debugger in the adobe acrobat pro

var sh = security.getHandler("Adobe.PPKMS");

// Connect to the directory containing the user certificates:

var dir = sh.directories[0];

var dc = dir.connect();

Directory.connect:24:Batch undefined:Exec

Connection could not be established. Check your directory configuration settings.

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