Page 2 of 2

Re: Help needed with pdf files

Posted: Wednesday 3rd March 2021 2:07pm
by bill-lancaster
OK, slowly getting there. Have started a separate topic for the farm problem.

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
Just figuring out how to change the page and how to use the zoom

Re: Help needed with pdf files

Posted: Wednesday 3rd March 2021 3:04pm
by cogier
Hi Bill,

I had a look at this issue some time ago. The attached program will open and display a pdf, so I thought it might be of interest to you. Note that the program is far from complete.
PDF_Reader5-0.0.1.tar.gz
(14.73 KiB) Downloaded 256 times