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.
java
import com.compdfkit.conversion.base.ErrorCode;
import com.compdfkit.conversion.LibraryManager;
public class App {
public static void main(String[] args) throws Exception {
String license = " ";
ErrorCode errorCode = LibraryManager.licenseVerify(license, "device_id", "app_id");
if (errorCode != ErrorCode.SUCCESS) {
return;
}
String resourcePath = "";
LibraryManager.initialize(resourcePath);
}
}