Max Zoom

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.
HomerWu
User
Posts: 91
Joined: Fri Nov 25, 2016 8:19 am

Max Zoom

Post by HomerWu »

Hello,

We know that the max zoom level of the pdfCtl is 6400,and the pdfCtl has a readonly property called CanZoomIn,but i want to set the value of max zoom to 400,when the zoom level is 400,user can not zoom in.do you have any way to set its max zoom level ? or do you have any way to set the property 'CanZoomIn' to false when the zoom level is 400?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Max Zoom

Post by Sasha - Tracker Dev Team »

Hello HomerWu,

Well, you can monitor the e.pagesView.layoutChanged event:
https://sdkhelp.pdf-xchange.com/vie ... outChanged
Then cast the interface to the IPXV_PagesLayoutChangedEvent and get the ChangesFlags from it. Then see whether the zoom was modified - the flags should contain the PXV_PagesLayoutChange_NewZoom flag.
Then check the current zoom - if it's greater then 400% then use this https://sdkhelp.pdf-xchange.com/vie ... ol_SetZoom method to set it back to 400%.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
HomerWu
User
Posts: 91
Joined: Fri Nov 25, 2016 8:19 am

Re: Max Zoom

Post by HomerWu »

Hello Sasha,

Thank you for your reply.how do you know i'm using the method you said? :lol:
Yes,i monitoed the event 'e.pagesView.layoutChanged' and when the zoom level is greater than 400%,i set it to 400%(SetZoom(PXV_ZoomMode.PXV_ZoomMode_Percent,400)),but i found that the page has a little location move(just have a look at the attach)

Anyway,thanks for your reply and if you have any other way,please let me know.
You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Max Zoom

Post by Sasha - Tracker Dev Team »

Hello HomerWu,

I see, then try using this event here - it will be fired before the zoom change, so this should fix this problem:
e.pagesView.beginLayoutChanging

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