Disable zooming on SFPdfViewer

Hi,

I'm trying to disable the zoom possibility on teh SFPdfViewer on Xamarin.Forms for Android and iOS.

I'm trying to set the ZoomPercentageMinimumZoomPercentage and MaximumZoomPercentage all to the same value, like 100, but I'm still able to zoom via the Pinch-And-Zoom gesture.

So how can I disable the zooming via the Pinch-And-Zoom gesture, but a scrolling with one finger 


3 Replies

VD Vikram Devaraj Syncfusion Team July 18, 2022 10:22 AM UTC

Hi Thomas,

We were unable to replicate the issue “Disabling zoom is not working properly” and it is working fine for us. Could you please try the attached sample and let us know whether we have missed out anything while replicating the issue. 

  

Please find the below code snip to disable the zoom,

            pdfViewerControl.ZoomPercentage = 100;

            pdfViewerControl.MinimumZoomPercentage = 100;

            pdfViewerControl.MaximumZoomPercentage = 100;


Kindly share the following details to analyze more on this issue and assist you with the better solution   

1.Simple sample/ modify the above sample to reproduce the issue.  

2.Replication video/procedure to reproduce the issue. 

3.PDF document  

4. SfPdfViewer version


Regards, 

Vikram


Attachment: DisableZoom_df2164a8.zip


TS Thomas Sebastian Jensen July 20, 2022 05:30 AM UTC

This is very wired.

I've tried your sample and everything is working. If I use exactly the same approach within my own application it doesn't work.

Although I set ZoomPercentage, MinimumZoomPercentage and MaximumZoomPercentage to 100 I'm still able to zoom via the pinch-and-zoom gesture.

I'm using a ViewModel approach but I've also tested to load the PDF stream in the code-behind file. I've also tried to use the PDF file provided wihtin the sample, without any l So I think that I need to investigate a little bit more which causes the issue on my app.



VD Vikram Devaraj Syncfusion Team July 21, 2022 04:34 AM UTC

Hi Thomas,

Thanks for the update, We will wait for your update to proceed further on this issue and assist you with the better solution.


Regards,
Vikram


Loader.
Up arrow icon