Skip to content
Guides

Apply the License

You need to initialize the ComPDFKit Conversion SDK with a license before calling any API. You can contact ComPDFKit team to get a trial license.

c++
// Include header file.
#include "compdfkit_conversion.h"

// Include namespace.
using namespace compdfkit;
using namespace common;
using namespace conversion;

// Verify the license.
const char* license = " ";
ErrorCode code = LibraryManager::LicenseVerify(license, false, "device_id", "app_id");
if (code != ErrorCode::Success) {
	return false;
}

// Initialize SDK resource.
const char* resource_path = " ";
LibraryManager::Initialize(resource_path);