PSPDFKit 7 Migration Guide

This guide provides the necessary steps for migrating from PSPDFKit 6.6 for Android to PSPDFKit 7 for Android.

Information

Before updating to PSPDFKit 7 for Android, make sure your app is running at least PSPDFKit 6.6 for Android. If you’re running an earlier version, see our previous migration guides first, which will guide you through the necessary update steps up to version 7.

Upgrading PSPDFKit

Inside your app/build.gradle file, update the version of the com.pspdfkit:pspdfkit dependency to 7.0.0:

dependencies {
-   implementation 'com.pspdfkit:pspdfkit:6.6.2'
+   implementation 'com.pspdfkit:pspdfkit:7.0.0'
 }

Upgrading OCR Dependencies

If your project also integrates the PSPDFKit OCR Library, make sure to upgrade the version of all OCR dependencies too:

dependencies {
-   implementation 'com.pspdfkit:pspdfkit-ocr:6.6.2'
-   implementation 'com.pspdfkit:pspdfkit-ocr-english:6.6.2'
+   implementation 'com.pspdfkit:pspdfkit-ocr:7.0.0'
+   implementation 'com.pspdfkit:pspdfkit-ocr-english:7.0.0'
    ...
}

Dropping KitKat Support

PSPDFKit 7 removed support for running on Android 4.4 KitKat (API 19) devices. The new minimum supported Android version is 5.0 Lollipop (API 21).

If you previously supported minSdkVersion 19 within your Android project, inside your app/build.gradle file, update the minSdkVersion to 21:

android {
    defaultConfig {
-       minSdkVersion 19
+       minSdkVersion 21
    }
}