|
Encrypt PDF document using standard PDF 128 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 PDFSetEncryption128bit( _ ByVal bEnablePrinting As Bool, _ ByVal bEnableHiQualityPrinting As Bool, _ ByVal bEnableEditing As Bool, _ ByVal bEnableExtraction As Bool, _ ByVal bEnableModifyAnnotations As Bool, _ ByVal bEnableFillForms As Bool, _ ByVal bEnableExtractionText As Bool, _ ByVal bEnableAssemblyDocument As Bool ) As Boolean
|
Parameter
bEnablePrinting true - enable printing permissions. Otherwise set to false.
bEnableHiQualityPrinting true - enable high quality printing. 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.
bEnableFillForms true - enable Filling of form fields. Otherwise set to false.
bEnableExtractionText true - enable Content extraction for accessibility. Otherwise set to false.
bEnableAssemblyDocument true - enable Document assembly. Otherwise set to false.
No Return Value
Example
|
Visual Basic Syntax Scanner1.PDFOutputPDFA=True Scanner1.PDFSetPassword "123", "123" Scanner1.PDFSetEncryption128bit True, True, True, True, True, True, True, True Scanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1
|
|
|