diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/restricting-zoom-in-mobile-mode.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/restricting-zoom-in-mobile-mode.md new file mode 100644 index 0000000000..1d8bdfc1f5 --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/restricting-zoom-in-mobile-mode.md @@ -0,0 +1,57 @@ +--- +layout: post +title: Restrict Zoom Percentage in EJ2 ASP.NET MVC PDF Viewer | Syncfusion +description: Learn here all how to restrict zoom percentage in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: PDF Viewer +publishingplatform: ##Platform_Name## +documentation: ug +--- + +# How to Restrict Zoom Percentage on Mobile Devices + +In Syncfusion PDF Viewer, you can easily restrict the zoom percentage on mobile devices using the **maxZoom** and **minZoom** property. This feature allows you to set specific limits for zooming, ensuring smoother scrolling performance and efficient document loading, on mobile devices. + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").DocumentLoad("documentLoad").DocumentPath("https://cdn.syncfusion.com/content/pdf/hive-succinctly.pdf").Render() +
+ + + +{% endhighlight %} +{% highlight html tabtitle="Server-Backed" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/api/PdfViewer/")).DocumentLoad("documentLoad").DocumentPath("https://cdn.syncfusion.com/content/pdf/hive-succinctly.pdf").Render() +
+ + +{% endhighlight %} +{% endtabs %} + +By implementing this, you ensure that the maximum zoom percentage on mobile devices is limited to 200% and the minimum zoom percentage is set to 10%. This prevents performance issues that may arise from excessive zooming on mobile platforms. \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/restricting-zoom-in-mobile-mode.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/restricting-zoom-in-mobile-mode.md new file mode 100644 index 0000000000..5f31bc44de --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/restricting-zoom-in-mobile-mode.md @@ -0,0 +1,65 @@ +--- +layout: post +title: Restrict Zoom Percentage in ##Platform_Name## PDF Viewer Component| Syncfusion +description: Learn here all about how to restrict zoom percentage in Syncfusion ##Platform_Name## PDF Viewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: PDF Viewer +publishingplatform: ##Platform_Name## +documentation: ug +--- + +# How to Restrict Zoom Percentage on Mobile Devices + +In Syncfusion PDF Viewer, you can easily restrict the zoom percentage on mobile devices using the **maxZoom** and **minZoom** property. This feature allows you to set specific limits for zooming, ensuring smoother scrolling performance and efficient document loading, on mobile devices. + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +
+ + +
+ + + +{% endhighlight %} +{% highlight html tabtitle="Server-Backed" %} + +
+ + +
+ + + +{% endhighlight %} +{% endtabs %} + +By implementing this, you ensure that the maximum zoom percentage on mobile devices is limited to 200% and the minimum zoom percentage is set to 10%. This prevents performance issues that may arise from excessive zooming on mobile platforms. \ No newline at end of file diff --git a/ej2-asp-core-toc.html b/ej2-asp-core-toc.html index f44f6a3ce0..fc9fa77d91 100644 --- a/ej2-asp-core-toc.html +++ b/ej2-asp-core-toc.html @@ -1903,6 +1903,7 @@
  • SignatureSelect and SignatureUnselect event
  • Controlling File Downloads
  • Minimum and Maximum Zoom Properties
  • +
  • Restrict Zoom Percentage on Mobile Devices
  • Troubleshooting diff --git a/ej2-asp-mvc-toc.html b/ej2-asp-mvc-toc.html index b503748ef5..5a629f170d 100644 --- a/ej2-asp-mvc-toc.html +++ b/ej2-asp-mvc-toc.html @@ -1863,6 +1863,7 @@
  • SignatureSelect and SignatureUnselect event
  • Controlling File Downloads
  • Minimum and Maximum Zoom Properties
  • +
  • Restrict Zoom Percentage on Mobile Devices
  • Troubleshooting