Developer Tools
|
Office Productivity Applications
|
Platform-Agnostic APIs
|
Home | Online Demos | Downloads | Buy Now | Support | About Us | News | Working Together | Contact Us
Early last month, we released a major update to PDFOne. In this update, we had introduced a new Ajax-enabled MVC extension for displaying PDF documents. (PDFOne already has an Web Forms PDF viewer component.)
In this article, we will see how to create a simple PDF Viewer application using this new MVC extension. Here are the steps:
Gnostice.PDFOne.Extensions.MVC.PDFViewer.ActivateLicense("your-license-key");
@{ PDFViewerSettings PDFViewerSettings1 = new PDFViewerSettings(); PDFViewerSettings1 = new PDFViewerSettings(); PDFViewerSettings1.Width = System.Web.UI.WebControls.Unit.Pixel(700); PDFViewerSettings1.Height = System.Web.UI.WebControls.Unit.Pixel(700); PDFViewerSettings1.ClientObjectName = "pdfviewer1"; Html.Gnostice().PDFViewer(PDFViewerSettings1).LoadDocument( Server.MapPath("~/App_Data/") + "sample_doc.pdf" ).Render(); }
<httpModules> <add name="Gnostice.PDFOne.Extensions.MVC.PDFViewerHttpHandlerModule" type="PDFViewerHttpHandlerModule"> </httpModules>
<modules runAllManagedModulesForAllRequests="true"> <add type="Gnostice.PDFOne.Extensions.MVC.PDFViewerHttpHandlerModule" name="PDFViewerHttpHandlerModule" > </modules>If there is no system.webServer tag, then add the following lines above the "runtime" tag.
<system.webServer> <validation validateIntegratedModeConfiguration="false" </> <modules runAllManagedModulesForAllRequests="true"> <add type="Gnostice.PDFOne.Extensions.MVC.PDFViewerHttpHandlerModule" name="PDFViewerHttpHandlerModule" /> </modules> </system.webServer>
---o0O0o---
Our .NET Developer Tools | |
---|---|
Gnostice Document Studio .NETMulti-format document-processing component suite for .NET developers. |
PDFOne .NETA .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications. |
Our Delphi/C++Builder developer tools | |
---|---|
Gnostice Document Studio DelphiMulti-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms. |
eDocEngine VCLA Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools. |
PDFtoolkit VCLA Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents. |
Our Java developer tools | |
---|---|
Gnostice Document Studio JavaMulti-format document-processing component suite for Java developers. |
PDFOne (for Java)A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications. |
Our Platform-Agnostic Cloud and On-Premises APIs | |
---|---|
StarDocsCloud-hosted and On-Premises REST-based document-processing and document-viewing APIs |
Privacy | Legal | Feedback | Newsletter | Blog | Resellers | © 2002-2024 Gnostice Information Technologies Private Limited. All rights reserved. |