Today we are proudly announcing PSPDFKit 4.1 for Android, which features biometric signature data, watermark rendering, custom annotation appearances, improvements to forms, and much more. As always, this blog post is just a sneak peek of everything inside the release. For a full list of changes, head over to our changelog for PSPDFKit 4.1 for Android.
This release adds yet another feature to the Digital Signatures component we launched with PSPDFKit 4 for Android.
With biometric signature data, you can attach additional “real-world information” to a digital signature. This includes information such as whether the signature was created with a stylus, the size of the signee’s finger, and the timing and pressure information collected while writing the signature. Ultimately, this data can be used to create solutions with better security than traditional digital signatures.
We updated our Digital Signatures guide to show how simple it is to create biometric data, how to collect it, and how to use it for signing.
For some use cases, apps need to render custom watermarks on top of a PDF. Up until now, this was not possible without you having to modify the document itself. With this release, we’re expanding our custom drawable API to our render engine, providing a simple but powerful way of adding custom content on top of any PDF rendering. We also expanded the API to our existing views, which enables you to display watermarks in virtually any part of your app.
If you’re interested, check out
WatermarkExample inside the catalog app and have a look at our drawable API guide, which explains all the tools required to implement watermarks in your app.
In this release, we’re introducing a brand-new API that allows overriding the appearance of any annotation with custom vector data. You can achieve this by providing a PDF file with the vector data you wish to apply and setting
AppearanceStreamGenerator on the target annotations. If you want to learn how the new API works in detail, have a look at our custom appearance streams guide.
We have been providing support for custom stamps with bitmap data for some time. However, due to the limitations of how PDFs store annotation data, it wasn’t possible to create custom stamps with a transparent background. But now you can use the custom annotation appearance streams API to create vector stamps.
To make your life easier, we’ve also expanded our stamp configuration API with the ability to define custom stamps with custom appearances that will be displayed in the stamp picker UI. If you’re interested in seeing it in action, take a look at
CustomStampAnnotationsExample inside the catalog app.
Filling out forms can be a time-consuming process — but it doesn’t have to be! That’s why, with PSPDFKit 4.1, we added a convenient search inside list fields and combo boxes, thereby making finding the correct value in large forms a breeze. Furthermore, we made our tab order-detection algorithms smarter, and we increased general support for all kinds of PDF forms that can be encountered in the wild. The complete list of form improvements in 4.1 can be found in the changelog.
In case your app renders single annotations or form widgets to
Bitmap objects, we added two new method overloads for
Annotation#renderToBitmapAsync() that allow you to define custom render options using
val options = AnnotationRenderConfiguration.Builder() .toGrayscale(true) .invertColors(false) .build() stampAnnotation.renderToBitmap(myBitmap, options)
final AnnotationRenderConfiguration options = new AnnotationRenderConfiguration.Builder() .toGrayscale(true) .invertColors(false) .build(); stampAnnotation.renderToBitmap(myBitmap, options);
PSPDFKit 4.1 is the next iteration of many of PSPDFKit’s great features — and our team is already working on the next big things to land. To see a comprehensive list of changes in this release, check out the PSPDFKit 4.1 for Android changelog.
❤️ Tip: Since we were itching to use our own 4.1 release, we already went ahead and updated our free PDF Viewer for Android, which you can grab from the Play Store and try right away.