How to Apply Windows License Key

Windows | Technical Questions Wed. 08 May. 2024

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.

Ready to Get Started?

Download our all-in-one ComPDFKit for free and run it to your project within minutes!