Before using any ComPDFKit PDF SDK classes, a required operation is to set the license key. Add the following method — LicenseVerify()
to “MainWindow.xaml.cs”.
bool LicenseVerify()
{
if (!CPDFSDKVerifier.LoadNativeLibrary())
return false;
LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("Input your license here", false);
return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
}
If you don't have license key, please contact ComPDFKit team to get a trial license. To learn about more information, please visit our full documentation for Windows.