2021.3 Migration Guide for Web | Nutrient
PSPDFKit for Web 2021.3 renames a series of APIs that contained “ink signature” as part of their names in favor of more generic “signature” definitions:
-
The
PSPDFKit.Configuration#populateInkSignatures
option was renamed toPSPDFKit.Configuration#populateStoredSignatures
. -
The
PSPDFKit.Instance#getInkSignatures
method was renamed toPSPDFKit.Instance#getStoredSignatures
. -
The
PSPDFKit.Instance#setInkSignatures
method was renamed toPSPDFKit.Instance#setStoredSignatures
. -
The
PSPDFKit.InteractionMode.INK_SIGNATURE
value was renamed toPSPDFKit.InteractionMode.SIGNATURE
. -
The
inkSignatures.create
,inkSignatures.update
,inkSignatures.delete
, andinkSignatures.change
events were renamed tostoredSignatures.create
,storedSignatures.update
,storedSignatures.delete
, andstoredSignatures.change
. -
The
ink-signature
toolbar item, which was part ofPSPDFKit.defaultToolbarItems
, was renamed tosignature
.
All of the former APIs will keep working as expected, but a warning will be logged into the console when used. Please migrate to the new names since the deprecated ones will be removed as part of the next major release.
Signature APIs that previously only supported ink annotations now also support image annotations:
-
PSPDFKit.Configuration#populateStoredSignatures
andPSPDFKit.Instance#setStoredSignatures
now also support usingPSPDFKit.Annotation.ImageAnnotation
instances, along withPSPDFKit.Annotation.InkAnnotation
ones. They’ll also be presented on the signature picking UI. -
PSPDFKit.Instance#getStoredSignatures
can returnPSPDFKit.Annotation.ImageAnnotation
instances in addition toPSPDFKit.Annotation.InkAnnotation
ones. -
The
storedSignatures.create
,storedSignatures.update
, andstoredSignatures.delete
events can returnPSPDFKit.Annotation.ImageAnnotation
instances in addition toPSPDFKit.Annotation.InkAnnotation
ones.
For a full list of changes, check out the changelog.
Migrate PSPDFKit Server
If you use PSPDFKit Server, please make sure you read the 2021.3 Server Migration Guide.