Some test text!

Realtime collaboration setup

Contents

Prerequisites
Step 1: Integration
Integrate collaboration package with Gradle
Integrate collaboration package manually
Step 2: Add the viewer
Next steps

linkPrerequisites

  • Minimum API: 21
  • Java 8

linkStep 1: Integration

linkIntegrate collaboration package with Gradle

  1. Integrate PDFTron core and the tools library as described here.

  2. In your app module's build.gradle file (usually app/build.gradle), set the minSdkVersion to 21+ and enable compatibility for Java 8 features. Then, add the dependency for PDFTron's collaboration package:

    android {
        defaultConfig {
            minSdkVersion 21
        }
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    
    dependencies {
        implementation "com.pdftron:collab:6.10.3"
    }

linkIntegrate collaboration package manually

  1. Integrate PDFTron core and tools packages as described here.

  2. Copy pdftron-collab.aar directly into your app module's libs directory. You will see other PDFTron AARs here such as pdftron.aar and tools.aar

  3. In your app module's build.gradle file (usually app/build.gradle), make sure the minSdkVersion is 21+ using Java 8 features. And add a dependency to PDFTron collaboration package:

    android {
        defaultConfig {
            minSdkVersion 21
        }
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    
    dependencies {
        implementation "com.pdftron:collab@aar"
    
        // room
        implementation "android.arch.persistence.room:runtime:1.1.1"
        annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
        implementation "android.arch.persistence.room:rxjava2:1.1.1"
    }

linkStep 2: Add the viewer

  1. Update your AndroidManifest.xml as described in Step 1 of this guide.

  2. Create the collaboration viewer fragment, and start it like any other Android Fragment.

linkNext steps

Get the answers you need: Support

Contents

Prerequisites
Step 1: Integration
Integrate collaboration package with Gradle
Integrate collaboration package manually
Step 2: Add the viewer
Next steps