SetPdfEncryption

 

#include “BlackIceDEVMODE.h”

 

BOOL             SetPdfEncryption (BlackIceDEVMODE* pDevMode, int iEncryption);

 

Description

 

This function sets the type of the encryption in the PDF document. Available values:

 

PDF_ENCRYPTION_NONE    (0)

No encryption

PDF_ENCRYPTION_40BIT    (1)

40-bit RC4 encryption, compatible with Acrobat 3.0 or later.

PDF_ENCRYPTION_128BIT  (2)

128-bit RC4 encryption, compatible with Acrobat 5.0 or later.

PDF_ENCRYPTION_256BIT_ADOBE  (3)

256-bit AES encryption, compatible with Acrobat 9.0 or later.

PDF_ENCRYPTION_256BIT_PDF20 (4)

256-bit AES encryption, compatible with Acrobat X or later. Uses a more secure algorithm than the Acrobat 9.0 compatible version.

 

Parameters

 

BlackIceDEVMODE* pDevMode

- pointer to the BlackIceDEVMODE structure

int iEncryption

- type of encryption to set, one of the values above

 

Return value

 

TRUE on success, otherwise FALSE.

 

Programming Notes

 

None

 

Code Example

 

None