• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of 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 .