Hi
I am using the below code to add a security policy to pdf’s, works great, the only thing I can’t
figure out is once the pdf has been secured and you open it, you see the words (SECURED) up
with the name of the file, how would I go about not having the word (SECURED) show up?, do I
need to add something to the java script?
Acrobat Pro DC
set PDF_Security to "var policyArray = security.getSecurityPolicies(); for (var i = 0; i < policyArray.length; i++) {if (policyArray[i].name == 'TEST') { var myPolicy = policyArray[i]}} this.encryptUsingPolicy( myPolicy );"
tell application "Adobe Acrobat"
activate
tell active doc
set File_Name to name
do script PDF_Security
if modified is true then
save to file (_dest & File_Name) -- Save as required. For Certified Document
--close
end if
end tell
end tell