PDFOne .NET
Powerful all-in-one PDF library for .NET
Compatibility
VS 2005/2008/2010/2012/2013

Key To PDFOne .NET Deployment (No Pun Intended)

Learn to deploy your PDFOne .NET applications without compromising your license key.
By Raju Sinha

We get a lot of queries regarding PDFOne .NET deployment such as the one below.

What are the requirements for deploying the pdfone to my web server? Are there any other files than the two .dll files [DevelopDotNet.Compression.dll and Gnostice.PDFOne.dll] required?

Well, there is one - the licenses.licx file. In this article, we will learn more about this file and why it is important in the deployment of your PDFOne .NET applications.

PDFOne .NET will accept your license key if you provide it in the following ways:

  1. Drag-and-drop the PDFDocument component from toolbox to a form in Visual Studio. A popup will open and prompt for the license key.
  2. Use the license key as an argument to a PDFDocument object constructor.
  3. Provide the key in the popup presented by the DLL at run-time.

The last two methods are good only for development. For deployment, we suggest the first method. Why?

The drag-and-drop method creates the file called licenses.licx, which contains only a public token of the PDFOne .NET DLL. (Usually, such files are not visible in the Solution Explorer and so you need to click on the Show All Files button to make them visible.)

The other two methods create a file called Gnostice.PDFOne.PDFDocument.lic that contains your unencrypted license key!

The next thing to ensure in deployment is to include the licenses.licx in your project as an "embedded resource." For this, right-click the licenses.licx in Solutions Explorer and select Include In Project on the context menu.

Next, select the file and change the Build Action property in the Properties panel to Embedded Resource.

Last but not the least, we feel we need to repeat this note from the help file:

DO NOT DISTRIBUTE the Gnostice.PDFOne.PDFDocument.lic file under any circumstance.

---o0O0o---

Our .NET Developer Tools
XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers.

PDFOne .NET

A .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
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

Our Java developer tools
XtremeDocumentStudio (for Java)

Multi-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
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

Privacy | Legal | Feedback | Newsletter | Blog | Resellers © 2002-2017 Gnostice Information Technologies Private Limited. All rights reserved.