Help needed with pdf files

Post your Gambas programming questions here.
Posts: 130
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Help needed with pdf files

Post by bill-lancaster » Wednesday 03rd March 2021 2:07pm

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

User avatar
Site Admin
Posts: 690
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Help needed with pdf files

Post by cogier » Wednesday 03rd March 2021 3:04pm

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.
(14.73 KiB) Downloaded 35 times

Post Reply