VpeSetEncryption

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

VpeSetEncryption

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Activates or deactivates encryption for exported PDF documents.

void VpeSetEncryption(

VpeHandle hDoc,

int enc_type

)

VpeHandle hDoc

Document Handle

int enc_type

possible values are:

Constant Name

Value

Comment

DOC_ENCRYPT_NONE

0

no encryption [default]

DOC_ENCRYPT_STREAM

1

use stream encryption (compatible to Acrobat 4 and higher)

Default:

DOC_ENCRYPT_NONE

Remarks:

See VpeSetEncryptionKeyLength(), VpeSetUserPassword(), VpeSetOwnerPassword() and VpeSetProtection() for details.

 

If one and the same VPE document is exported multiple times to encrypted PDF documents, the size of the created PDF files might differ around 10 - 20 bytes. This is normal, because some encrypted characters - for example in the creation date / time string - need to be converted into a special form with additional escape characters.