Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Dec 08, 2023 7:37 pm

I'm having some trouble getting our different versions of different libraries to work together in our project.

We have a license for Spire.Doc .NET version 10.6 that we purchased a little over a year ago. And a license for Spire.PDF .NET version 9.9 we just purchased.

In our project we had already had Spire.Doc installed and were applying the license with:
Spire.License.LicenseProvider.SetLicenseKey("key");

However after installing Spire.Pdf 9.9 that previous line becomes invalid and will not compile. We can set the license for the PDF library with:
Spire.Pdf.License.LicenseProvider.SetLicenseKey("key");

But the same pattern does not work for Spire.Doc:
Spire.Doc.License (this namespace doesn't exist)

I tried using Spire.Office 8.11.2 based off the instructions from the How to Apply two licenses or more on your Licensing page and setting both licenses:
Spire.Doc.License.LicenseProvider.SetLicenseKey("key");
Spire.Doc.License.LicenseProvider.LoadLicense();
Spire.Pdf.License.LicenseProvider.SetLicenseKey("key");
Spire.Pdf.License.LicenseProvider.LoadLicense();

However that doesn't seem to be working as when I build a word document and use Spire.Doc to convert it to a Pdf, my generated Pdf has the watermarks in it.

How am I supposed to use these two products in the same project?

briansteil
 
Posts: 2
Joined: Thu Jun 30, 2022 5:49 pm

Mon Dec 11, 2023 3:32 am

Hello,

Thank you for your inquiry.
After checking your purchase records based on your email, I found that your license for Spire.Doc expired on July 1st of this year. However, the latest version of Spire.Doc in Spire.Office 8.11.2 is 11.11.8, and your license does not cover this version.
To resolve the issue of warning watermarks appearing in your Word to PDF conversion results, you have two options:
1.Renew and update your license for Spire.Doc: By doing so, you will be able to use the latest version of Spire.Doc without any limitations. This will ensure that the converted PDF files no longer contain the warning watermarks.
2.Alternatively, you can remove Spire.Office from your project and then install the specific versions of Spire.Doc and Spire.PDF via the NuGet Package Manager. Please install Spire.Doc 11.6.1 (the highest version covered by your existing license) and Spire.PDF 9.12.0 separately. The usage of the license will remain the same as it currently is in your project, where you load two separate licenses.
Please let us know which option you would like to proceed with, and if you have any further questions or concerns. We are here to assist you.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Wed Dec 13, 2023 3:01 pm

Thanks for the help! Using Spire.Doc 11.6.1 and Spire.PDF 9.12.0 is working as intended now.

briansteil
 
Posts: 2
Joined: Thu Jun 30, 2022 5:49 pm

Thu Dec 14, 2023 1:14 am

Hello,

You're welcome.
If you encounter other issues related to our products in the future, please feel free to contact us.
Have a nice day.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc