Watermark detection

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Re: Watermark detection

DynamicPDF CoreSuite for .NET (v11) Forum

 May 15 2023 11:52 AM
Hi,

We provide our license key for DynamicPDF through configuration (web.config or app.config).  This works most of the time but we've had a few occasions where the license isn't valid and the watermark shows to our customers.  What we'd like to do is detect the watermark in a unit test or automated test so we have some indication when this is happening.  Is there a method to detect the license watermark or just that the product is not licensed at runtime?
 May 15 2023 12:41 PM
Posted by a ceTe Software moderator
Hi,

There is no option to detect the evaluation watermark on the output PDF.

We have an AddLicense method which returns a true value if the added license is valid.  If you are adding license key through a config file then try reading it in the code (using ConfigurationManager) and adding it to the application using the AddLicense method.

This allows you to know whether the application is licensed correctly or not.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 7:20 PM.