Scanner Pro ActiveX Control ReferenceMethods PDFSetPassword 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 ValueExample Visual Basic SyntaxScanner1.PDFOutputPDFA=TrueScanner1.PDFSetPassword "123", "123"Scanner1.PDFSetEncryption128bit True, True, True, True, True, True, True, TrueScanner1.SaveAllPage2PDF "c:\newpage.pdf", True , 1