In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

SumatraPDF: wrong content position

Xailer professional forum in English
Responder
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

SumatraPDF: wrong content position

Mensaje 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 988 veces

Best regards
Timm
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: SumatraPDF: wrong content position

Mensaje por Timm »

Hi,

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

Regards Timm
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9253
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: SumatraPDF: wrong content position

Mensaje 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 934 veces
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: SumatraPDF: wrong content position

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9253
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: SumatraPDF: wrong content position

Mensaje por ignacio »

Hi,

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

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: SumatraPDF: wrong content position

Mensaje por Timm »

Hi Ignacio,

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

Regards, Timm
Responder