I'm trying to put a POC together where I convert a Word document to PDF using the latest version of the Spire.Doc package (11.5.6) in a .NET 7 application.
However, the generated PDF has the Evaluation Warning despite adding the license keys. Please see the code below for reference.
- Code: Select all
using Spire.Doc;
namespace DocRendererPOC
{
public static class Converter
{
public static void Pdf(string file, string outputDirectory)
{
Spire.Doc.License.LicenseProvider.SetLicenseKey("");
Spire.Doc.License.LicenseProvider.LoadLicense();
Spire.Doc.License.LicenseProvider.SetLicenseKey("");
Spire.Doc.License.LicenseProvider.LoadLicense();
var document = new Document();
document.LoadFromFile(file);
document.SaveToFile(Path.Combine(outputDirectory, "Converted.pdf"), FileFormat.PDF);
}
}
}
I'm currently using my company's license keys to achieve this. Are there any limitations I should be made aware of when attempting to run this locally that could be causing this?
Thanks,
Morgan