This example demonstrates how to use the Office File API and ASP.NET MVC Extensions to implement a custom PDF viewer. This PDF viewer displays a PDF document's content as images and allows users to navigate through document pages.
You need an active license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use the Office File API library in production code.
Use the following classes to implement the PDF viewer:
-
PdfDocumentProcessor
Allows you to manage PDF files. The PdfDocumentProcessor's LoadDocument method opens a PDF document and the CreateBitmap method converts the document's pages to images. -
BinaryImageEditExtension
Displays a PDF document's pages as images. -
DataViewExtension
Allows users to navigate through pages. -
UploadControlExtension
Allows users to upload a PDF document to the server. -
CallbackPanelExtension
Opens a document in the PDF viewer after a user uploads the PDF document to the server.
- PdfViewerController.cs (VB: PdfViewerController.vb)
- PdfPageModel.cs (VB: PdfPageModel.vb)
- _DocumentViewPartial.cshtml
(you will be redirected to DevExpress.com to submit your response)