Question:
I have a problem adding the license to our code.
Message: The evaluation version of the product has expired.
OR
Message: Bad License Key. PDFNet SDK will work in the demo mode.
Answer:
=====================================================================
NEW!!! Using a new license key with an older version of the SDK
If you received a license key with a 3 after the platform version that throws a Bad License Key exception, it is possible that the key you have is not compatible with the version of the SDK you are currently using.
For example, the below key will not work with a version of the SDK lower than 11.3:
MyCompany.:PWS:MyApplication::L+3:AMS(20280629):…
To use this key, please upgrade to the latest version of the SDK that can be downloaded from our dev portal: https://dev.apryse.com/
=====================================================================
Evaluation / Presales
If you are evaluating our product please make sure to get a demo/trial key from here first.
You would then use that key when you call PDFNet.Initialize()
=====================================================================
Verify the following conditions are true:
1) Please make sure you’re using the entire key string (but with no leading/trailing whitespace).
For example if your key is MyCompany:OEM:1234 then you would call
PDFNet.Initialize("MyCompany:OEM:1234");
2) Make sure you are running on the licensed OS/platform. See below for current platforms (*).
3) Also, this needs to be in the first instance of PDFNet.Initialize (there should be only one anyway, but you can get by with multiple in some cases).
4) You call PDFNet.Initialize before any other calls to PDFNet functions.
Finally, if the above doesn’t help, then the key might not be compatible with the version of PDFNet you are trying, so download the latest version of PDFNet and try that one.
https://dev.apryse.com/
* To see which OS/platform your license is for, in your license key you will see a string such as “::IAR:AMS(20160509):” The letters “I”, “A” and “R” are the platforms in this example.
Below are some of the most common.
W - Windows
L - Linux
M - Mac
I - iOS
A - Android
B - Web (PDFNetJS)
RP - Windows Metro/Windows Phone 8 (now UWP)
=========================================================================
Further reading
WebViewer guide : Add license key | Apryse documentation
WebViewer Server guide : Adding a License to WebViewer Server | Apryse documentation
PDFNet SDK guide : Where should I call the PDFNet initialize? | Apryse documentation