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.

Tue May 23, 2023 8:33 am

Hi,

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

mlpepper
 
Posts: 1
Joined: Wed May 17, 2023 10:35 am

Tue May 23, 2023 9:03 am

Hello,

Thank you for your inquiry.
I'm sorry that I didn't find your purchase information according to your email, could you please provide your order information or authorization email? You could attach the required information here or send to us via email ([email protected]). Thanks in advance.

Sincerely,
Wenly
E-iceblue support team
User avatar

Wenly.Zhang
 
Posts: 149
Joined: Tue May 16, 2023 2:19 am

Wed May 24, 2023 3:16 am

Hello,

Thanks for sharing the information via email.
According to the information you provided, we found that your license subscription was expired in 2019, thus the warning message will appear when you use our latest version of Spire.Doc. To help you better test our latest version, we are willing to provide you with a one-month temporary license. If you need it, feel free to reach out to me anytime.

Sincerely
Wenly
E-iceblue support team
User avatar

Wenly.Zhang
 
Posts: 149
Joined: Tue May 16, 2023 2:19 am

Return to Spire.Doc