• Material
  • Fabric
  • Bootstrap
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse

Example for Custom Toolbar in ASP.NET MVC PDF Viewer Control

This sample demonstrate how to perform the PDF Viewer core functionalities using a custom toolbar.

DEMO
SOURCE

This sample demonstrate how to perform the PDF Viewer core functionalities using a custom toolbar.

In this example, you can see PDF Viewer control API in action to perform the functionalities.

  • Go to Previous Page - viewer.navigation.goToPreviousPage()
  • Go to Next Page - viewer.navigation.goToNextPage()
  • Go to Page - viewer.navigation.goToPage(pageindex)
  • Print - viewer.print.print()
  • Download - viewer.download()
  • Fit To Page - viewer.magnification.fitToPage()
  • Zoom In - viewer.magnification.zoomIn()
  • Zoom Out - viewer.magnification.zoomOut()
  • Load document - viewer.load(fileName, password)
  • Show or hide default toolbar - viewer.toolbar.showToolbar(isEnable)

More information on the PDF Viewer instantiation can be found in this documentation section .