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 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"