UserPassword
property for PowerScript controls
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:
|
1 2 3 4 5 6 7 8 |
PDFDocument lpdf_doc PDFSecurity lpdf_security lpdf_doc = Create PDFDocument lpdf_security = lpdf_doc.security lpdf_security.masterpassword = "appeon" lpdf_security.userpassword = "appeon123" |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest