DynamicPDF.Rasterizer License

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Rasterizer for .NET (v2)  /  DynamicPDF.Rasterizer License

DynamicPDF Rasterizer for .NET (v2) Forum

 Sep 07 2016 11:47 PM
How or Where do I add a license number to my project?

Thanks
 Sep 08 2016 12:14 PM
Posted by a ceTe Software moderator
Hello,

You can add the DynamicPDF Rasterizer license key either to the config file or through code. You can find the instructions on licensing the application by clicking on the View License Key button by logging into our customer area using your serial number. Also below is the syntax to add the license key.

Through code before creating the PdfRasterizer object.

Visual Basic Code:
ceTe.DynamicPDF.Rasterizer.PdfRasterizer.AddLicense("Add license key here")

C# Code:
ceTe.DynamicPDF.Rasterizer.PdfRasterizer.AddLicense("Add license key here");

Adding license key to the web.config file.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ceTe.LicenseKey" value="Add generated license key here" />
</appSettings>
 <system.web>
<!-- Place your system.web settings here -->
</system.web>
</configuration>

If you continue facing any issue while licensing the application then please send over the following details to support@cete.com  so we can look into it further.

1. DynamicPDF Rasterizer license key added to the application.
2. Syntax used to add the license key.

Also please do not share details of any license key or DynamicPDF product serial number on the forum.

Thanks,
ceTe Software Support Team.
 Apr 29 2020 10:46 AM
I am using .net core 3.1 to build my API, and I need to configure DynamicPdf license in my API servers (multiple servers with load balancer). I don't have any web.config file, we fetch the other configs from appsettings.JSON . Placing DynamicPdf License key at Appsettings.JSON, doesn't look working. Any help?
 Apr 30 2020 1:14 PM
Posted by a ceTe Software moderator
Hello,

The simplest way to license an ASP.NET Core application is by calling the PdfRasterizer.AddLicense static method when the application starts up. A good place is in the constructor for the Startup class or inside the Startup class’s Configure method.

Startup Constructor:
    public Startup(IConfiguration configuration)
    {
        Configuration = configuration;
        ceTe.DynamicPDF.Rasterizer.PdfRasterizer.AddLicense("License Key Goes Here");
    }

Or Configure method:
    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        ceTe.DynamicPDF.Rasterizer.PdfRasterizer.AddLicense("License Key Goes Here");
       // Remainder of method
    }

Thanks,
ceTe Software Support Team
 Jun 01 2020 10:21 AM
I have the same code deployed in two servers. By design dynamic pdf need to have two different license keys for each server. In that scenario, how do we add the multiple license keys if we do not have control over web.config?
 Jun 01 2020 12:38 PM
Posted by a ceTe Software moderator
Hi,

You can call the AddLicense method multiple times. If you have 2 license keys for 2 different servers, you can call the AddLicense method twice on each server. It will return a boolean value indicating if the license was valid, and as long as one of the calls returns true, the watermark will be removed.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 11:57 AM.