This example demonstrates how to use the Office File API and ASP.NET Web Forms Controls 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. -
ASPxBinaryImage
Displays a PDF document's pages as images. -
ASPxDataView
Allows users to navigate through pages. -
ASPxUploadControl
Allows users to upload a PDF document to the server. -
ASPxCallbackPanel
Opens a document in the PDF viewer after a user uploads the PDF document to the server.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
- PdfViewer.ascx (VB: PdfViewer.ascx)
- PdfViewer.ascx.cs (VB: PdfViewer.ascx.vb)
(you will be redirected to DevExpress.com to submit your response)