|
Encrypt PDF document using standard PDF 40 RC4 bit encryption and adjust standard PDF permissions. You must set the PDFOutputPDFA=True if you need securing a PDF file with a user (open) and an owner (permission) password and setting permissions
Public Function PDFSetEncryption40bit( _ ByVal bEnablePrinting As Bool, _ ByVal bEnableEditing As Bool, _ ByVal bEnableExtraction As Bool, _ ByVal bEnableModifyAnnotations As Bool ) As Boolean
|
Parameter
bEnablePrinting true - enable printing permissions. Otherwise set to false.
bEnableEditing true - enable change the document. Otherwise set to false.
bEnableExtraction true - enable Content copying or extraction. Otherwise set to false.
bEnableModifyAnnotations true - enable modify Annotations. Otherwise set to false.
No Return Value
Example
|
Visual Basic Syntax Scanner1.PDFOutputPDFA=True Scanner1.PDFSetPassword "123", "123" Scanner1.PDFSetEncryption40bit True, True, True, True Scanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1
|
|
|