应用许可证密钥
如果您还没有获取许可证密钥,请查看如何获取许可证密钥。
复制许可证密钥
获取许可证密钥之后,根据以下步骤将其应用到您自己的项目。
- 在您收到的邮件中,找到包含许可证密钥的
XML文件 - 打开
XML文件。
离线许可证:
xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<license version="1">
<platform>windows</platform>
<starttime>xxxxxxxx</starttime>
<endtime>xxxxxxxx</endtime>
<key>LICENSE_KEY</key>
</license>- 复制
<key>LICENSE_KEY</key>字段中的LICENSE_KEY
应用许可证密钥
您可以通过以下方式进行认证:
C#
public static bool LicenseVerify()
{
if (!CPDFGeneration.LoadNativeLibrary())
return false;
LicenseErrorCode errorCode = CPDFGeneration.LicenseVerify("Input your license here");
return (verifyResult == LicenseErrorCode.LICENSE_SUCCESS);
}