|
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 ImageViewer1.FileName="c:\test1.tif" ImageViewer1.PDFOutputPDFA=True ImageViewer1.PDFSetPassword "123", "123" ImageViewer1.PDFSetEncryption40bit True, True, True, True ImageViewer1.Save "c:\outpdf", "PDF"
|
|
|