Scanner ActiveX Control

PDFSetPassword

 

Set output PDF document is protected with an owner password and user password.

Public Function PDFSetPassword( _
   ByVal strOwnerPassword As String, _
   ByVal strUserPassword As String
) 

 

Parameter

strOwnerPassword
   the owner password.

bstrUserPassword
   the user password.


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