Today we’re releasing PSPDFKit 4.3 for Android — our first 2018 update to PSPDFKit for Android. This release features undo and redo of edits, copy and paste of annotations, annotation note icons, an improved Ink Eraser, and much more. This blog post is just a preview of all the great things that went into the release. For a full list of changes, head over to our changelog for PSPDFKit 4.3 for Android.
Undo and Redo
We have been heavily invested in building our next big feature for PSPDFKit, and today we’re releasing full undo and redo support for annotation edits. Our powerful undo and redo system records all annotation changes performed by your users, and it allows them to navigate backward and forward through the edit history.
Under the hood, we carefully designed a generic undo framework that is capable of recording changes on virtually any kind of data. Currently, only annotation changes are managed via undo and redo, but future releases will provide support for undoing changes on things like bookmarks, document editor pages, and more. Moreover, with one of our next releases, we plan to expose public APIs to our undo framework, giving developers full control over undo and redo.
Annotation Copy and Paste
With annotation copy and paste, we enhanced the general annotation editing experience of PSPDFKit 4.3 for Android. You can now copy any annotation into a smart clipboard and paste it to any page of your document (or to a different document). This even works with standard keyboard shortcuts, which is especially useful on Chromebooks.
Another practical feature of copy and paste is the extraction of text from annotations into the system clipboard and vice versa. For example, when pasting text from any app into a document, PSPDFKit will conveniently create a free-text annotation out of it.
Annotation Note Hints
With the introduction of annotation notes in PSPDFKit 3.3 for Android, we added a way of inserting additional content into visible annotations. With this release, we enhance the user experience of annotation notes with Note Hints. The new
AnnotationNoteHinter drawable provider can render note icons next to any annotation carrying a note. The hinter is configured to work out of the box in our
PdfActivity on our public API and can also be used with our
PdfFragment. Check out the Customize Annotation Rendering guide for information on how to configure the hinter.
The existing Ink Eraser was improved and can now erase across multiple ink annotations with a single stroke. We optimized performance of the eraser to make the experience as natural as possible. The eraser works hand in hand with our new undo and redo, giving your users all the tools required for professional editing.
Better Render Quality
PSPDFKit 4.3 for Android now ships with a smart algorithm for selecting the render quality of pages in a
PdfFragment. Previously, the quality of pages scheduled for being displayed was set to a fixed value, but our new low-res render strategy will select the optimum bitmap resolution for renderings based on the device specs. This ensures best performance and quality on any smartphone, tablet, or Chromebook. To find out more about this feature and how to configure it, check out our Low-Resolution Render API guide.
Many More Changes
In our push to further improve our code base, we introduced Kotlin 1.2.20 and added a new
KotlinExampleto the Catalog. If you are interested in Kotlin, check out our PSPDFKit for Android Documentation, which contains guides that provide a Kotlin code example next to every Java example.
We added a simple but nonetheless powerful Catalog example of PSPDFKit Instant. The
InstantExampleshows how to initialize and use Instant, and it works with our existing PSPDFKit Instant for Web demo.
We made several improvements to our Digital Signatures user interfaces and APIs. The
SignatureSignerDialogcan now sign documents without saving them first, which allows your users to sign documents from read-only sources. We also added a new convenience method,
SignatureFormElement#getOverlappingInkSignature(), which is for retrieving any ink annotation sitting on top of a signature form field.
We believe that PSPDFKit 4.3 for Android is a fantastic way to start 2018 — and there are many more great things planned for the rest of the year. To see a comprehensive list of changes in this release, check out the PSPDFKit 4.3 for Android changelog.