SetPassword
Description
Sets the password to use before decrypting the file with Decrypt.
Syntax
Delphi
function TQuickPDF0726.SetPassword(const Password: string): Integer;
ActiveX
Function QuickPDF0726.PDFLibrary::SetPassword(Password As String) As Long
DLL
int QuickPDFSetPassword(int InstanceID, char * Password)
Parameters
| Password | The owner or user password to use. May be an empty string. |
Return values
| 0 | The password supplied is incorrect |
| 1 | The password supplied is the User password |
| 2 | The password supplied is the Owner password |
| 3 | The document is not encrypted |
| 4 | The document is encrypted with an unknown encryption |
| 5 | The password supplied is both the User and Owner password |