This example demonstrates how to implement a custom web PDF viewer control by using the DevExpress Document Server 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 Document Server product license is required for using this approach. Please refer to the Subscriptions page for more information.
Question Comments
Added By: Harikrishna Manikandan at: 10/4/2017 5:25:48 AM hi,
this example is not working mvc5 ?
because i have to run mvc 4 it's working fine but same code execute in mvc 5 sowing flowing error.
please check this reference dll file for use pdf viewer. is working fine in mvc4 but not working in mvc5
in bin folder there are three files
DevExpress.Web.Mvc.v17.1.dll
DevExpress.Web.Mvc.v17.1.xml
DevExpress.Web.Mvc5.v17.1.dll
i have already add reference in web.config file.
<add assembly="DevExpress.Pdf.v17.1.Core, Version=17.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
and if i was try to without delete
1) DevExpress.Web.Mvc.v17.1.dll
2) DevExpress.Web.Mvc.v17.1.xml
so following error are showing
D:\DocumentSharing1.0\DAT.DS.Web\Views\Home\_CallbackPanelPartial.cshtml(1): error CS0121: The call is ambiguous between the following methods or properties: 'DevExpress.Web.Mvc.UI.HtmlHelperExtension.DevExpress<ModelType>(System.Web.Mvc.HtmlHelper<ModelType>)' and 'DevExpress.Web.Mvc.UI.HtmlHelperExtension.DevExpress<ModelType>(System.Web.Mvc.HtmlHelper<ModelType>)'
and delete both file in bin folder so error will be display
Could not load file or assembly 'DevExpress.Pdf.v17.1.Core, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)