VpeSetOwnerPassword

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

VpeSetOwnerPassword

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Sets the Owner Password for the document. Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions (see also VpeSetUserPassword() and VpeSetProtection()).

void VpeSetOwnerPassword(

VpeHandle hDoc,

LPCSTR owner_password

)

VpeHandle hDoc

Document Handle

LPCSTR owner_password

A string which may contain any characters. Up to 32 characters of the password are used for generating the encryption key (see VpeSetEncryptionKeyLength()).

Default:

not set (i.e. empty)