×
Menu
Index

Password

 
 
  • Password( ownerpass, userpass ) => defines passwords for PDF Reader.
 
 
Ownerpass (character) : defines a owner password for the PDF file. The owner password can not be null.
 
Userpass (character) : defines a user password for the PDF file. The user password can be any length, including null, but if present, must be different from the owner password.
 
 
 
 
 
 
If passwords are defined for the file, the PDF will be encrypted.
This method can be called anywhere between Create() and EndDoc() calls.
Before this method is used, you MUST set Encryption mode and Permission levels.
 
Ex:        oPdf:Encryption( 2, 5 )
 oPdf:Permissions( 16 + 32 )
 oPdf:Password( "owner", "user" )