SetPdfSecurityFlags

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.

 

SetPdfSecurityFlags (pBlackIceDEVMODE As Long, lFlags As Long) As Boolean

 

Input value    - pointer to the BlackIceDEVMODE structure.

                        - new security flags to set.

Return value - TRUE on success, otherwise FALSE.

 

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