Description
There are two levels of password protection that can be set for PDF files – one for opening the PDF file (also known as the document open password), and one for making changes or modifying the PDF file (also called the permissions, or change, password).
This method allows you to specify these passwords. PDF password protection is only applies if PDF security is enabled. This is done through the PDFSetSecurity method.
To set only a single security option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.
Syntax
expression.SetPDFPassword(EnableOpenPassword, OpenPassword,
EnableChangePassword, ChangePassword)
where expression is a IPNSession object.
Parameters
Boolean EnableOpenPassword
Set True to require anyone opening this PDF file to type in the password you specify.
String OpenPassword
The password you want to use to allow the PDF file to be opened.
Boolean EnableChangePassword
Set True to require anyone making changes to this PDF file to type in the password you specify. When set, this password is required to change the security settings or to modify permissions on the document.
String ChangePassword
The password you want to use to allow changes to the PDF file.
Remarks
Use the following to set these options using SetProperty:
Method Parameter |
SetProperty Parameters |
||||||
---|---|---|---|---|---|---|---|
EnableOpenPassword |
|
||||||
OpenPassword |
|
||||||
EnableChangePassword |
|
||||||
ChangePassword |
|
Supported Printers: PDF Image Printer, Raster Image Printer
See Also: SetPDFSecurity SetProperty