This gets the pdf image into the viewer
Code: Select all
Public Sub DocumentView1_Draw(Page As Integer, Width As Integer, Height As Integer)
Dim img As Image = hDoc[Page].Render(Desktop.Resolution)
Paint.DrawImage(img, 0, 0, Paint.Width, Paint.Height)
End