Image Viewer CP Gold SDK ActiveX

Image Viewer CP Gold SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

For Windows Developers who need to PDF TIFF Viewer and Image Viewer , plus support TIFF with WANG Annotations, securing a PDF document, add annotation with PDF for C , C#, VB.NET , VB, Delphi, Vfp, MS Access.

Popular Solution Go   Back

VB.NET - How to securing a PDF document using 128 bit RC4 encryption and owner, user password

How to securing a PDF document using 128 bit RC4 encryption and owner, user password in VB.Net

Step 1: Download Image Viewer CP Gold ActiveX setup disk and installed it.

Step 2: Create New Visual Basic Project, select Windows Application.

Step 3: Add a buttons into the form.

Step 4: Add following code in buttons click event.

This sample convert test.tif to protected PDF document.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

AxImageViewer1.FileName="c:\test.tif"
AxImageViewer1.PDFOutputPDFA= True
AxImageViewer1.PDFSetPassword("123","123")

AxImageViewer1.PDFSetEncryption128bit(True, True, True, True, True, True, True, True)
AxImageViewer1.Save ("c:\outpdf", "PDF")


End
Sub