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.
Unfortunately, activation email could not send to your email. Please try again.

Setting ZoomFactor in code

Thread ID:

Created:

Updated:

Platform:

Replies:

120686 Oct 3,2015 08:05 PM Oct 6,2015 02:27 AM ASP.NET MVC (Classic) 3
loading
Tags: PdfViewer
Randy Craven
Asked On October 3, 2015 08:05 PM

Hello,

Is is possible to set the zoom factor of the PDFViewer control using code?

thanks,
Randy

Balasubramanian Sundararajan [Syncfusion]
Replied On October 5, 2015 08:47 AM

Hi Randy,


Yes, we can set the zoomfactor for the PdfViewer control using the example code below,


@{ Html.Syncfusion().PdfViewer("PdfView")

        .Load((Stream)ViewData["filestr"])

        .PdfParamsArgs((PdfViewerParams)ViewData["PdfParam"])

        .Width(System.Web.UI.WebControls.Unit.Pixel(1000))

        .ZoomPercentage(200)

        .Render(); }

And we have created a sample which illustrates the same. Please find the sample from the link below,


http://www.syncfusion.com/downloads/support/forum/120686/ze/PdfViewerMvc4Demo-453148066


Please let us know if you need further assistance on this.


Thanks,

Balasubramanian S


Randy Craven
Replied On October 5, 2015 01:18 PM

Thank You very much!

Randy

Balasubramanian Sundararajan [Syncfusion]
Replied On October 6, 2015 02:27 AM

Hi Randy,

Thank you for your update.

Please let us know ,if you need further assistance.

Thanks,

Balasubramanian



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.

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.

;