Re: [Gambas-user] Fitting a preview into a fixed area

2015-11-05 Thread Fabien Bodard
Maybe you can use a DocumentVuew for that... I will send you an example tomorrow. Le 5 nov. 2015 08:29, "Rolf-Werner Eilert" a écrit : > A PictureBox: > >PDF.Open(druck.TempVerz() &/ CStr(VorschauName) & ".pdf") >PDF.Zoom = 0.5 >Vorschau = PDF[VorschauSeite].Image.Picture 'Where Vors

Re: [Gambas-user] Fitting a preview into a fixed area

2015-11-04 Thread Rolf-Werner Eilert
A PictureBox: PDF.Open(druck.TempVerz() &/ CStr(VorschauName) & ".pdf") PDF.Zoom = 0.5 Vorschau = PDF[VorschauSeite].Image.Picture 'Where Vorschau is the PictureBox This runs fine e. g. when you set the PictureBox to AutoResize = True as it will automagically follow the size of the PD

Re: [Gambas-user] Fitting a preview into a fixed area

2015-11-04 Thread Fabien Bodard
Well what control did you use for that ? 2015-11-04 13:06 GMT+01:00 Rolf-Werner Eilert : > I am showing a pdf preview. There are landscape and portrait pdfs, and > some are A4, some are A3... > > Instead of following the size, I would like to fit them into a fixed, > square preview area, i. e. the

[Gambas-user] Fitting a preview into a fixed area

2015-11-04 Thread Rolf-Werner Eilert
I am showing a pdf preview. There are landscape and portrait pdfs, and some are A4, some are A3... Instead of following the size, I would like to fit them into a fixed, square preview area, i. e. the A3 ones would have to be shown smaller, but the aspect ratio must be kept of course, not stretc