I need help with this. I have searched the web looking for this and haven't found a complete script and I don't know how to patch one together from multiple scripts. We are currently using a fillable PDF template form for all our inspections and have figured out how to use it from our tablets. I need to add a button to this form with a java script to lock the entire PDF so it can not be edited. Its okay if it is printed or copied, we just want to provide some level of protection from a customer accidentally altering a inspection report. I would like to make it so the button can be activated and deactivated with a password prompt for both occasions so techs don't have to constantly unlock after accidentally clicking the button. I don't know much about java other than how to copy it to a button in a PDF and select it as a mouse up to exec a java script. I would like to set the password as 123456 for the time being so I can easily find it in the script and replace with the password we would prefer to use. Not sure if this is doable but we love to have some feed back. I am trying to avoid doing the flatten option since people can still easily alter the report. I know that it could still be printed, scanned, and then altered. Like I said we want to provide some level to show that if a file is altered it was intentional and not on the original.
Have something to add?