#include “BlackIceDEVMODE.h”
BOOL SetPdfSecurityFlags (BlackIceDEVMODE* pDevMode, DWORD dwFlags);
Description
Sets the security flags of the PDF document. Available values:
PDF_SECURITY_FLAG_NO No flag is set
PDF_SECURITY_FLAG_PRINT Allow the printing of the PDF
PDF_SECURITY_FLAG_COPY Allow copy out text and graphics form the document.
PDF_SECURITY_FLAG_COMMENT Allow fill in forms and modify comments
PDF_SECURITY_FLAG_EDIT Allow edit the PDF document
You can combine the flags. For example if you want to allow print and copy, your flag parameter should be PDF_SECURITY_FLAG_PRINT + PDF_SECURITY_FLAG_COPY.
Parameters
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure.
DWORD dwFlags - value of the flags to be set
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None