We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Set initial zoom

Hi,

I'm using library Syncfusion.SfPdfviewer. Is it possible to set Initial Zoom of the pdf I'm viewing?
Or is it possible that pdf autoadapt to the view follow according to his width?

Thanks

1 Reply

SS Sathish Sivakumar Syncfusion Team January 16, 2019 12:48 PM UTC

Hi Mauro, 

Thank you for using Syncfusion products. 

We can set the initial zoom value to the PDF document using the ZoomPercentage property present in SfPdfViewer. Please find the code snippet below for your reference. 

pdfViewer.ZoomPercentage = 150; 

We have also attached the simple sample in the below link to achieve the same. 


Note: By default, PDF document is displayed fit to the width of SfPdfViewer in mobile platforms. 

For UWP desktop application we need to set the ViewMode property to FitWidth, so that PDF document is displayed fit to the width of SfPdfViewer. Please find the code snippet below for your reference. 

PdfViewer.ViewMode = ViewMode.FitWidth; 

Regards, 
Sathish 


Loader.
Live Chat Icon For mobile
Up arrow icon