Copy link to clipboard
Copied
I'm trying to effectively protect my document. I restricted all permissions but printing and added a password. However, the first free program I tried removed the password and protection. How do I effectively protect the document?
Copy link to clipboard
Copied
Hi ,
Refer the following link to protect PDF with passwords.
Securing PDFS with passwords, Adobe Acrobat
If it is a PDF password remover software,it' purpose is to remove the password only.
Regards
Sukrit Dhingra
Copy link to clipboard
Copied
Still doesn't help me.
Copy link to clipboard
Copied
So is Adobe saying there isn't really a way to lock the document?
Copy link to clipboard
Copied
Hi ,
Uninstall the Password Remover program and then follow the steps to protect the document.
Regards
Sukrit Dhingra
Copy link to clipboard
Copied
‌Doesn't Adobe's warning message when you set a password make this clear? I can't speak for them but that does.
Copy link to clipboard
Copied
‌This is what Adobe's warning message meant.
Copy link to clipboard
Copied
Is there a way via javascript to test if a PDF is secured and what the password is?
Even if the security is stripped, couldn't you hide pages on doc open if there is no password or if the password was wrong?
As a bad example:
if (testForPassword == "12345"){
page1.presence = "visible";
}
else {
page1.presence = "hidden";
}
Copy link to clipboard
Copied
Is there a way via javascript to test if a PDF is secured
Yes, using the securityHandler property of the Document object.
and what the password is?
Of course not, that would defeat the entire purpose of the security policy.
However, I don't see how any of this will help you... If someone removes the security policy they can also easily disable JS.
Short of using DRM protection there's no real secure way to encrypt a PDF file, I'm afraid.
Copy link to clipboard
Copied
Thanks for the quick comments; should have been more clear.
1) In my case, the PDF is xfa (so only going to work on Adobe - this is acceptable) and if javascript is off, purpose of the PDF becomes severely limited. Needs to be on.
2) Good point, try67. Guess goal would be to trigger a message box on open, which would trigger the doc close event after clicking 'okay.'
Any examples of using the securityHandler property of the Document object?
B
Copy link to clipboard
Copied
If JS is disabled, none of that would work.
Also, I'm not sure the securityHandler property will work for an LCD form...
Try applying a doc-open password. It's more robust than the doc-edit protection, I believe, and might help you solve this issue without resorting to using scripts.
Copy link to clipboard
Copied
Thanks again for the reply.
Unfortunately 3rd party apps can strip all the passwords off a PDF.
Been messing around with securityHandler without luck. Frustrating. Documentation seems to indicate LCD has securityHandler but it's not working for me. Posted a question in the LCD forum: Hiding contents of PDF based on NON-existence of a password?
Any other thoughts? I'll keep you posted of my results.
Thanks!
Brian
Copy link to clipboard
Copied
Hi try67 -
Just an update: no matter what I do, this.securityHandler always seems to return null, regardless of the presence of a doc open or permissions password.
So frustrating!
B
Copy link to clipboard
Copied
You need to ask over at the LiveCycle Designer forum. I can tell you it works fine with Acrobat forms.
Copy link to clipboard
Copied
Ah, I see that you did already... Hopefully someone will be able to answer it.
Copy link to clipboard
Copied
Hey try,
Made some progress on this in the other thread. Just saying thanks.
B.
Copy link to clipboard
Copied
Don't forget JS can be turned off and support in non-Adobe products is potluck.