Developer Tools
|
Office Productivity Applications
|
Platform-Agnostic APIs
|
Home | Online Demos | Downloads | Buy Now | Support | About Us | News | Working Together | Contact Us
In the latest Version 6 of PDFOne .NET, we have introduced a PDF web viewer control. It can be used in your WebForms applications to display and print PDF documents.
To display a PDF document in a Web Forms application, you need to create an instance of Web.PDFViewer control and then call the LoadDocument method. Let's get started with it:
system.web
closing tag.
<httpHandlers> <add verb="GET,POST" path="PDFViewer.axd" type="Gnostice.PDFOne.Controls.Web.PDFViewer, Gnostice.PDFOne.Controls.Web" /> </httpHandlers> <httpRuntime executionTimeout="110" maxRequestLength="901196" />
system.webServer
below the system.web
tag.
<system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers accessPolicy="Read, Write, Script, Execute"> <remove name="SPImage" /> <add name="SPImage" verb="GET,POST" path="PDFViewer.axd" type="Gnostice.PDFOne.Controls.Web.PDFViewer, Gnostice.PDFOne.Controls.Web" /> </handlers> </system.webServer>
PDFViewer1.ActiveLicense("your-license-key"); PDFViewer1.LoadDocument(Server.MapPath(".") + "\\App_Data\\sample.pdf");
Of course, this is a barebones example meant only to get you started. The installation setup installs a more elaborate source code example in your "Documents" folder. Please check those demos to learn more about the viewer control.
---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-2023 Gnostice Information Technologies Private Limited. All rights reserved. |