Setting Default Zoom to "Fit Page"  SOLVED

PDF-XChange Editor SDK for Developers

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

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
AnKeilha
User
Posts: 63
Joined: Fri Apr 27, 2018 11:17 am

Setting Default Zoom to "Fit Page"

Post by AnKeilha »

Hello,
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 :?:

Regards,
AnKeilha
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Setting Default Zoom to "Fit Page"  SOLVED

Post by Sasha - Tracker Dev Team »

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 https://sdkhelp.pdf-xchange.com/vi ... V_ZoomMode flags and add the minus sign to get the needed flag.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply