I'm using PDFViewHorz to display the pdf when in portrait view.
I need to fit the pdf to height and because the pdf view height is not the the full screen height I can't use PDFViewVert or so.
It's a single site pdf and i want the page to be centered horizontally.
I tried to set Global.def_view = 3, tried to set the m_view.vSetPos(pos, w/2, h/2); but nothing works.
the pdf is centered vertical but I need both. vertical and horizontal.
Whatever I tried the pdf page stays at the left screen border.
Because of the project deadline I really would need a quick answer if anyone knows how to get this work!
Last edit: by Chaâbane.
The topic has been locked.
center page horizontal und vertical
4 years 8 months ago #7226