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?