Image Viewer CP Pro SDK ActiveX

Image Viewer CP Pro SDK ActiveX 7.2

Platform : Windows 9X, XP, Vista, Window 7

For Windows Developers who need to PDF image viewer in c++ , c#, vb.net , vb, delphi, vfp, access.

How to rotate multipage TIFF or PDF file in VB.Net

Step 1: Download image viewer cp pro 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. Please change the FileName path so that it points to a valid TIFF or PDF file.

This sample code rotate page 1, page 3 from multipage PDF file

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

AxImageViewer1.FileName = "c:\yourimage.pdf"
AxImageViewer1.ClearRotateMultiPageOnly()
AxImageViewer1.RotateMultiPageOnly(0, 1)
AxImageViewer1.RotateMultiPageOnly(2, 1)
AxImageViewer1.Save "c:\newfile", "pdf"

End Sub