Files to look at:
- HomeController.cs (VB: HomeController.vb)
- PdfViewerController.cs (VB: PdfViewerController.vb)
- PdfPageModel.cs (VB: PdfPageModel.vb)
- _CallbackPanelPartial.cshtml
- Index.cshtml
- _DocumentViewPartial.cshtml
- _PdfViewerPartial.cshtml
How to implement a simple PDF viewer in ASP.NET MVC web application by using the Office File API functionality
This example demonstrates how to implement a custom web PDF viewer control by using the Office File API functionality.
The main idea of this approach is to use the PdfDocumentProcessor class functionality to load the PDF document and convert its pages to images. Then, these images are rendered in the browser to display PDF document pages.
Important Note:
The Office File API product license is required for using this approach. Please refer to the Subscriptions page for more information.