Image Viewer CP Gold SDK ActiveX Control ReferenceMethods PDFSetPassword Image Viewer CP 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 SyntaxImageViewer1.FileName="c:\test1.tif"ImageViewer1.PDFOutputPDFA=TrueImageViewer1.PDFSetPassword "123", "123"ImageViewer1.PDFSetEncryption40bit True, True, True, TrueImageViewer1.Save "c:\outpdf", "PDF"