I want to create a javascript in acrobat to automatically close a document only when password security is on
I want to create a javascript in acrobat to automatically close a document only when password security is on
I want to create a javascript in acrobat to automatically close a document only when password security is on
Ah, I see... You are aware there are many ways to get around such "protection", right?
You can use this code to do it:
if (this.securityHandler!=null) {
var toObj = app.setTimeOut("this.closeDoc(true);", 300000);
}
Note: I didn't test this code. It's possible it will not work correctly. For example, if the user switches to another file during these 5 minutes, I believe the code will try to close that file... There might be ways around that, but it's getting more tricky.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.