PSPDFKit 2024.4 Migration Guide

This guide outlines the changes to PSPDFKit for Android 2024.4.

Breaking API Changes

Legacy Digital Signature APIs

Since version 8.9 was released last year, the old signing API has been deprecated in favor of the much simpler SigningManager API. See the migration guide here. We also have Catalog examples showing how to use the new API here and here, as well as a guide here.

Since version 2024.4, the deprecated code has been removed. It should be clear in your IDE where in your code you’re using the deprecated code. If you need help, contact Support.

There are additional public APIs and resources without a deprecation period that were removed in this release:

  • PdfFragment#setSignatureMetadata() and PdfFragment#getSignatureMetadata() have been removed. Metadata isn’t stored anywhere and is only used in the signing process.

  • PdfFragment#setDocumentSigningListener() has been removed, as we don’t have a signing listener. Signing is done via programmatic API only.

  • DocumentSigningListener has been removed, as it’s no longer used.

  • Signature#getSignerIdentifier() has been removed, as we have no need to store Signer.

  • Signature#create() methods have changed to remove signerIdentifier, as it’s no longer required.

  • SignatureCertificateSelectionMode has been removed, as we don’t store certificates.

  • PdfConfiguration#signatureCertificateSelectionMode has been removed, as we don’t store certificates.

  • SignatureOptions has been changed to remove the SignatureCertificateSelectionMode and defaultSigner properties, as they’re no longer required.

  • Style attributes: pspdf__signerChipIconBackground, pspdf__signerChipIconRes, and pspdf__signerChipIconTint are no longer available and can be deleted. There’s no replacement, as we no longer store Signer objects in the SDK.

Deprecated APIs