Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies within .NET ( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Fri Apr 13, 2012 10:20 am

Hi there,

We bought spire.doc a while ago and last week purchased spire.pdf. I now have two license key xml files.

How do I apply both license files to the same project?

Posts: 13
Joined: Fri Oct 07, 2011 2:31 pm

Mon Apr 16, 2012 5:55 am

Hi fatmedia,

Sorry for the late reply.

There are steps to use two licenses in one project:

Firstly, please apply one of the licenses (Spire.Doc/Spire.PDF) if you want to operate corresponding kind of document.

Secondly, clear the license which you have applied in the first step by using this code:
Code: Select all

Thirdly, apply the other license and then operate document.

I also attached a demo illustrates how to apply two licenses to the same project, please have a look.

PS: I applied the license through code Spire.License.LicenseProvider.SetLicenseKey("license key"). The license key is the Key attribute of the license file. If you want to apply the license as embedded resource, you need to rename one of the licenses file at least and then use the code:
Code: Select all

to apply it.

In case of any ambiguity, please feel free to contact us at any time.

Have a nice day.

With best regards.
e-iceblue support
You do not have the required permissions to view the files attached to this post.
User avatar

Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Mon Apr 16, 2012 2:24 pm

thank you for the example code, worked great!

Posts: 13
Joined: Fri Oct 07, 2011 2:31 pm

Thu Jun 28, 2012 3:47 am

Please feel free to contact us for anything at any time. Have a great day!
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.PDF