For the complete documentation index, see llms.txt. This page is also available as Markdown.

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=true and android.enableJetifier=true in your gradle.properties file. For more, check out our FAQ about AndroidX.

No trial license key required.

The trial of Apryse Mobile SDK does not require a trial key. A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.

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

  1. Open the settings.gradle file located in your project's root directory and add the Apryse Maven repository:

Apryse SDK for Android is hosted on a private Maven repository in Amazon S3, so an access token is required to download it. The project only communicates with Amazon S3 in order to download Apryse SDK for Android. Otherwise, no other communication between your environment and Amazon S3 (or any other external service) is required. If you prefer not to use Amazon S3, you can find an alternative approach here .

  1. Open the build.gradle file in your app module's directory:Edit it to add a dependency for the full version of Apryse:

The next part of this guide will use DocumentActivity to open and view a document which requires the full version of Apryse SDK. The standard version has lighter set of features to reduce the size of the APK.You can find out more about the differences between the two versions here . If you would like to use the standard version instead, please take a look at this guide

  1. In your project's root directory, find the gradle.properties file. Copy the following line to it:

  1. Open your AndroidManifest.xml file and add a <metadata> tag inside the <application> tag to be a placeholder for the license key:

Next step

View a document

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=true and android.enableJetifier=true in your gradle.properties file. For more, check out adding Apryse using AndroidX.

  • Apryse Android SDK

Download the SDK

No trial license key required.

The trial of Apryse Mobile SDK does not require a trial key. A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.

Setup

  1. Extract the folder from the .zip file.This article will assume that the path into the extracted PDFNetAndroid library bundle is called PDFTRON_BASE

  1. Create a new project on Android Studio called myApp. Find the path to the app/libs folder. If the libs folder does not exist, create one in the module (for example, myApp/app/libs)For the purposes of this guide, you can start with an Empty Activity.

Integrate Apryse SDK into your Android application

  1. Copy all of the following files into your libs directory:You can learn more at Apryse Android viewer.Now, your app/libs folder should look like this:

  • PDFTRON_BASE/lib/full/pdftron.aar

  • PDFTRON_BASE/lib/tools.aar

  1. Open the build.gradle file in your app module's directory:Edit it to include the following inside the android.defaultConfig section:Also edit the dependencies section and include:

  1. In your project's root directory, find the gradle.properties file. Copy the following line to it:

  1. Open your AndroidManifest.xml file 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:

File/Folder Name
Description

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

View a document

Last updated

Was this helpful?