Get started integrating Apryse Android SDK
Welcome to Apryse. This guide will help you integrate a free trial of Apryse Android SDK into your Android Studio projects. You can either integrate Apryse packages automatically using Gradle, or install them manually using .aar files by downloading the SDK. Pick whichever your option you prefer, but integrating with Gradle is the recommended approach. Your free trial includes unlimited trial usage and support from solution engineers.
Gradle Integration
Prerequisites
Project specifications:
Minimum API: 21 (using AndroidX)
Compile API: 35
Recommended target API: 35
If your app is using AndroidX you will also need to add
android.useAndroidX=trueandandroid.enableJetifier=truein yourgradle.propertiesfile. For more, check out our FAQ about AndroidX.
Keep your license keys confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Setup
Create a new project on Android Studio called myApp.
For the purposes of this guide, you can start with an Empty Activity.
Integrate Apryse SDK into your Android application
Open the
settings.gradlefile located in your project's root directory and add the Apryse Maven repository:
Open the
build.gradlefile in your app module's directory:Edit it to add a dependency for the full version of Apryse:

In your project's root directory, find the
gradle.propertiesfile. Copy the following line to it:
Open your
AndroidManifest.xmlfile and add a<metadata>tag inside the<application>tag to be a placeholder for the license key:
Next step
Manual Integration
Prerequisites
Project specifications:
Minimum API: 21 (using AndroidX)
Compile API: 35
Recommended target API: 35
If your app is using AndroidX you will also need to add
android.useAndroidX=trueandandroid.enableJetifier=truein yourgradle.propertiesfile. For more, check out adding Apryse using AndroidX.
Apryse Android SDK
Download the SDK
Keep your license keys confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Setup
Extract the folder from the .zip file.This article will assume that the path into the extracted
PDFNetAndroidlibrary bundle is called PDFTRON_BASE
Create a new project on Android Studio called
myApp. Find the path to theapp/libsfolder. If thelibsfolder does not exist, create one in the module (for example,myApp/app/libs)For the purposes of this guide, you can start with anEmpty Activity.
Integrate Apryse SDK into your Android application
Copy all of the following files into your
libsdirectory:You can learn more at Apryse Android viewer.Now, yourapp/libsfolder should look like this:
PDFTRON_BASE/lib/full/pdftron.aarPDFTRON_BASE/lib/tools.aar
Open the
build.gradlefile in your app module's directory:Edit it to include the following inside theandroid.defaultConfigsection:Also edit thedependencies sectionand include:

In your project's root directory, find the
gradle.propertiesfile. Copy the following line to it:
Open your
AndroidManifest.xmlfile and add a<metadata>tag inside the<application>tag to be a placeholder for the license key:
SDK package overview
Download the SDK
Apryse for Android contains the following key files and folders:
docs
Contains the Apryse Android API reference documentation
lib
Contains the Apryse AAR libraries and the source files to the open-source UI - /full: Contains full version of pdftron.aar - /standard: Contains standard version of pdftron.aar - /src: Contains source code for tools.aar, pdftron-collab.aar
samples
Contains the Java and Kotlin sample projects: Showcase , CompleteReader , and MiscellaneousSamples
legal.txt
Legal and copyright information
license.pdf
Apryse Software License agreement
Next step
Last updated
Was this helpful?