Web Browser
Hi. Is there a code to add to a PDF form to prevent it from opening in a web browser? I have a form with password protections that are bypassed when the form is opened in a web browser due to the user not having a pdf reader installed.
Hi. Is there a code to add to a PDF form to prevent it from opening in a web browser? I have a form with password protections that are bypassed when the form is opened in a web browser due to the user not having a pdf reader installed.
You can try it with this code, but be aware it's not fool-proof. It could very well be that some PDF viewers are so bad they won't show the field at all, causing the underlying contents to be revealed...
if (app.viewerType=="Reader" || app.viewerType=="Exchange" || app.viewerType=="Exchange-Pro") {
this.getField("CoverField").display = display.hidden;
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.