Setting Default Zoom to "Fit Page"  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
Posts: 41
Joined: Fri Apr 27, 2018 11:17 am

Setting Default Zoom to "Fit Page"

Post by AnKeilha » Fri May 31, 2019 6:41 am

we are using PagesView.DefaultZoom to set the default zoom as a percentage or 0 for "Fit width". We are still struggling to set "Fit page" as the default zoom.

Is there any way to set "Fit page" as the default zoom :?:


User avatar
Sasha - Tracker Dev Team
Posts: 4980
Joined: Fri Nov 21, 2014 8:27 am

Re: Setting Default Zoom to "Fit Page"  SOLVED

Post by Sasha - Tracker Dev Team » Sat Jun 01, 2019 11:01 am

Hello AnKeilha,

Here's the enum of flags that are used:

Code: Select all

	docMagnification_Visible	= -PXV_ZoomMode_FitVisible,
	docMagnification_Page		= -PXV_ZoomMode_FitPage,
	docMagnification_Width		= -PXV_ZoomMode_FitWidth,
	docMagnification_Height		= -PXV_ZoomMode_FitHeight,
	docMagnification_Actual		= -PXV_ZoomMode_Actual,
	docMagnification_Automatic	= 0,
Basically, you can take the ... V_ZoomMode flags and add the minus sign to get the needed flag.

Join us at Google+:
Subscribe at:

Post Reply