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?
Watermark detection
Re: Watermark detection
Support · May 15, 2023Hi,
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