Setting ZoomFactor in code

Hello,

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

thanks,
Randy

3 Replies

BS Balasubramanian Sundararajan Syncfusion Team October 5, 2015 12:47 PM UTC

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



RC Randy Craven October 5, 2015 05:18 PM UTC

Thank You very much!

Randy


BS Balasubramanian Sundararajan Syncfusion Team October 6, 2015 06:27 AM UTC

Hi Randy,

Thank you for your update.

Please let us know ,if you need further assistance.

Thanks,

Balasubramanian



Loader.
Up arrow icon