Página 1 de 1

SumatraPDF: wrong content position

Publicado: Vie Jun 23, 2023 4:50 pm
por Timm
Hi!

The PDF is not displayed centred.
The view is only displayed correctly when the window size is changed at runtime.

example.png
example.png (87.9 KiB) Visto 1591 veces

Best regards
Timm

Re: SumatraPDF: wrong content position

Publicado: Mar Jun 27, 2023 3:32 pm
por Timm
Hi,

does anyone have any ideas?
You can easily recreate the problem with the example in \Samples\Sumatra.

Regards Timm

Re: SumatraPDF: wrong content position

Publicado: Jue Jun 29, 2023 4:54 pm
por ignacio
I'm afraid I can not reproduce your error. Sorry. Try with another Sumatra version. There are three different versions in \samples\sumatra directory.
Imagen 118.png
Imagen 118.png (68.86 KiB) Visto 1537 veces

Re: SumatraPDF: wrong content position

Publicado: Vie Jun 30, 2023 12:42 pm
por Timm
Hi Ignacio,

I found out that the problem only exist on high-resolution monitors and scaling other than 100%.
Setting Application:lDpiAware := .t. fixes it, but it has a lot side effect to the other controls.

Regards, Timm

Re: SumatraPDF: wrong content position

Publicado: Mié Jul 05, 2023 7:22 pm
por ignacio
Hi,

Today we publish a new version that I hope it will fix the problem. Fingers crossed.

Regards,

Re: SumatraPDF: wrong content position

Publicado: Jue Jul 06, 2023 3:39 pm
por Timm
Hi Ignacio,

yes, the new version fixed the problem.
Many thanks!

Regards, Timm