pdf security

Allows you to password-protect a PDF file.


Example

Running this code will put security passwords to the PDF "E:\Example Folder\Test File.pdf" with the following properties:

  • User Password: 123
  • Owner Password: abc
  • Allow Print & Copy: True

Saving it to "E:\Saved Folder\SampleLocked.pdf".

plugin command("Document Automation.dll", "pdf security", "E:\\Example Folder\\Test File.pdf", "E:\\Saved Folder\\SampleLocked.pdf", 123, "abc", "True", "True")

Was this helpful?

Previous Article

pdf merge

Next Article

pdf split