Macrosian
11-14-2011, 09:25 PM
I got the script reference encryptUsingPolicy from Adobe API references, But don't know how to include it in the VBA, Please advice. I have already created a security policy to protect the document
This is an example from API Guide
var doc = app.newDoc();
var policy = security.chooseSecurityPolicy();
var results = doc.encryptUsingPolicy( { oPolicy: policy } );
if ( results.errorCode == 0)
console.println("The policy applied was: " + results.policyApplied.name);
This is an example from API Guide
var doc = app.newDoc();
var policy = security.chooseSecurityPolicy();
var results = doc.encryptUsingPolicy( { oPolicy: policy } );
if ( results.errorCode == 0)
console.println("The policy applied was: " + results.policyApplied.name);