PSPDFKit 8.6 Migration Guide
This guide provides the necessary steps for migrating from PSPDFKit 8 for Android to PSPDFKit 8.6 for Android.
Before updating to PSPDFKit 8.6 for Android, make sure your app is running at least PSPDFKit 8 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 8.6.
Upgrading PSPDFKit
Inside your app/build.gradle
file, update the version of the com.pspdfkit:pspdfkit
dependency to 8.6.0
:
dependencies { - implementation 'com.pspdfkit:pspdfkit:8.5.1' + implementation 'com.pspdfkit:pspdfkit:8.6.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:8.5.1' - implementation 'com.pspdfkit:pspdfkit-ocr-english:8.5.1' + implementation 'com.pspdfkit:pspdfkit-ocr:8.6.0' + implementation 'com.pspdfkit:pspdfkit-ocr-english:8.6.0' ... }
RxJava 2 to RxJava 3
PSPDFKit 8.6 for Android upgrades ReactiveX Java from major version 2 to 3 (specifically 3.1.6).
This means users who make use of our asynchronous APIs need to change their imports, replacing import io.reactivex.
with import io.reactivex.rxjava3
where applicable.
For more details on migrating to RxJava 3, see the official migration guide.
Deprecated Symbols Removed
PSPDFKit 8.6 for Android removes the following APIs that were deprecated in previous versions:
-
SignatureFormElement#getOverlappingInkSignature
, which was replaced bySignatureFormElement#getOverlappingSignature
. -
The legacy
PKCS7
andPKCS7SignatureContents
constructors, which have been replaced by constructors that useFilterSubtype
:-
PKCS7#create
-
PKCS7SignatureContents
-byte
andPKCS7SignatureContents
-SignatureFormField
-
-
PdfThumbnailGrid#setOnDocumentSavedListener
, which was replaced byaddOnDocumentSavedListener(OnDocumentSavedListener)
. -
PdfDrawable#getPDFToPageTransformation
andPdfDrawable#updatePDFToViewTransformation
, which were replaced bygetPdfToPageTransformation
andupdatePdfToViewTransformation
.