New to Telerik UI for Blazor? Download Free 30-day trial

PDF Viewer - Pinch to Zoom

  • EXAMPLE
  • VIEW SOURCE
  • Pinch-to-zoom.razor
  • PdfViewerConstants.cs
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The Telerik UI for Blazor PDF Viewer provides built-in Pinch to Zoom support that enables intuitive, touch-native document inspection on mobile devices and touchscreen computers. This feature is active by default and requires no additional configuration.

The Pinch to Zoom capability complements the existing toolbar zoom controls, giving users a natural alternative to the step-based zoom buttons. Both mechanisms respect the configured MinZoom and MaxZoom boundaries, so the document can never be scaled beyond the limits defined in the component.

Because the feature is enabled automatically, no markup changes are required to support mobile visitors. Simply load a PDF document using the Data parameter and render the component — touch zoom works immediately in any modern mobile browser that supports the Touch Events API.

This Blazor PDF Viewer Pinch to Zoom example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.