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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set initial zoom

Thread ID:

Created:

Updated:

Platform:

Replies:

141952 Jan 11,2019 04:43 PM UTC Jan 16,2019 12:48 PM UTC Xamarin.Forms 1
loading
Tags: PdfViewer
Mauro
Asked On January 11, 2019 04:43 PM UTC

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

Sathish Sivakumar [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;