SetPdfEncryption

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.

 

SetPdfEncryption(pBlackIceDEVMODE As Long, lEncryption As Long) As Boolean

 

pBlackIceDEVMODE  - Input value

- pointer to the BlackIceDEVMODE structure.

lEncryption – Input value

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

 

Return value - TRUE on success, otherwise FALSE.

 

NOTE: For 32-bit applications , use pBlackIceDEVMODE as Integer, instead of Long.