DynamicPDF.Rasterizer License

DynamicPDF.Rasterizer License

Forum member · Sep 7, 2016
How or Where do I add a license number to my project? Thanks

Re: DynamicPDF.Rasterizer License

Support · Sep 8, 2016
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 [^a|mailto:support@cete.com|opennewwindow|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.

Re: DynamicPDF.Rasterizer License

Forum member · Apr 29, 2020
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?

Re: DynamicPDF.Rasterizer License

Support · Apr 30, 2020
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

Re: DynamicPDF.Rasterizer License

Forum member · Jun 1, 2020
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?

Re: DynamicPDF.Rasterizer License

Support · Jun 1, 2020
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