22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beginning <strong>and</strong> Ending a Document 3.5<br />

to the user password, a character pointer to the owner password, <strong>and</strong> a PDPerms<br />

data type. The latter must contain the security permissions as outlined in the Acrobat<br />

Core API <strong>Reference</strong> Manual in the PDPerms definition. This call may be made at any<br />

time prior to dlpdfdocwritepdf.<br />

dlpdfdocsetencryptkeylen<br />

This enables variable length encryption keys as supported by the Adobe PDF Library.<br />

It accepts a DLPDFDOC pointer, a parameter specifying the number of bytes between 5<br />

<strong>and</strong> 16 inclusive used to determine key length used during encryption.<br />

This function can be called to set the length of the encryption key before a call to<br />

dlpdfdocencrypt if the application is to use an encryption key length other than<br />

the original 40-bit length provided in previous versions.<br />

The use of this function is optional if the original 40-bit key length is to be used.<br />

Subsequent calls to dlpdfdocencrypt will use the number of bytes specified in the<br />

call to dlpdfdocsetencryptkeylen. If the key length has not been set previously,<br />

the st<strong>and</strong>ard 5-byte value is used as the default.<br />

For more information on Encryption, refer to the beginning of section 3.5,<br />

"Encryption," in the Adobe PDF <strong>Reference</strong> (Fourth edition). For information on<br />

PDDocSetNewSecurityData <strong>and</strong> StdSecurityDataRec, see the Adobe Core<br />

API <strong>Reference</strong> <strong>Guide</strong> (March, 2004 edition), pages 1352 <strong>and</strong> 2988 respectively.<br />

NOTE: For applications generating multiple documents,<br />

dlpdfdocsetencryptkeylen must be called for each document for which<br />

an encryption key length other than the st<strong>and</strong>ard 5-byte value is desired.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!