Le 24/02/2024 à 13:03, Benoît Minisini a écrit :
..
In the last commit, I modified the Render() method so that if you 
specify the width and height arguments, and not the resolution argument, 
the best drawing resolution will be automatically computed.

That way, no need to tackle the problem of conversion between pixels, 
resolution and absolute size anymore!

Here is the modified code in the DV_PDF_POPPLER project:

Public Sub DocumentView1_Draw(Page As Integer, Width As Integer, Height 
As Integer)

   Dim hImage As Image

   hImage = $PDF_Doc[Page].Render(0, 0, Width, Height)
   Paint.DrawImage(hImage, 0, 0)

End

Regards,

-- 
Benoît Minisini.