Copy link to clipboard
Copied
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}
};
Copy link to clipboard
Copied
Could you please let me know what you are trying to accomplish?
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now