Applies to
PDFSecurity object
Description
Gets or sets the user password of the PDF document.
Usage
The user password is also referred to as an open password that enables you to open a PDF document.
If you want to set a user password to open the PDF document, the master password must be set by the MasterPassword property. The user password and the master password cannot be the same, otherwise Save function will fail and return -1.
In scripts
This example sets the user password for the PDFSecurity object lpdf_security:
PDFDocument lpdf_doc PDFSecurity lpdf_security lpdf_doc = Create PDFDocument lpdf_security = lpdf_doc.security lpdf_security.masterpassword = "appeon" lpdf_security.userpassword = "appeon123"