SetPdfOwnerPassword

 

#include “BlackIceDEVMODE.h”

BOOL            SetPdfUserPassword (BlackIceDEVMODE* pDevMode, LPTSTR pPassword);

Description

Sets the user password of the PDF document. The maximum number of characters in the password is (MAX_PASSWORD_LNG - 1). The MAX_PASSWORD_LNG is declared in DEVMODE.h. If the length of the keywords is too large, the function returns FALSE.

Parameters

BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure.

LPTSTR pPassword                                 - password of the PDF document

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None