Skip to content
Guides

How to Run a Demo

ComPDFKit Conversion SDK for Android provides one demo in Kotlin for developers to learn how to call the SDK on Android. You can find them in the "ComPDFKit_Conversion_Demo" folder. In this guide, it takes the "Kotlin" demo as an example to show how to run it on Android.

  1. Import the "ComPDFKit_Conversion_Demo" project on Android Studio.
  2. In the toolbar, select "ComPDFKit_Conversion_Demo" from the run configurations drop-down menu.
  3. From the target device drop-down menu, select the device that you want to run "ComPDFKit_Conversion_Demo" on.
  4. Click Run.

If you don't have any devices configured, then you need to either connect a device via USB or create an AVD to use the Android Emulator.

Note:

  1. This is a demo project, presenting completed ComPDFKit Conversion SDK functions. The functions might be different based on the license you have purchased. Please check that the functions you choose work fine in this demo project.

  2. Configure the absolute path of sdk.dir and ndk.dir in local.properties.