THotPDF.EncryptFile Method

Method summary: THotPDF.EncryptFile Method

Declaration

function EncryptFile(const InputFileName : TFileName; const OutputFileName: TFileName; const OwnerPassword : AnsiString; const UserPassword : AnsiString; KeyType : THPDFKeyType; Permissions : THPDFProtectOptions): Integer; overload;

Unit

HPDFDoc

Parameters

NamePurpose
InputFileNameFile
OutputFileNameFile
OwnerPasswordPassword
UserPasswordPassword
KeyTypeValue: EncryptFile
PermissionsValue: EncryptFile

Return value

Returns a value: Integer

Usage notes

Related APIs