PSPDFKit for Web 2018.5
We’re excited to announce the newest set of features that make up our PSPDFKit for Web 2018.5 release: image annotations to place arbitrary images on a PDF page, two new sidebar modes — one to show the table of contents (document outlines) of a PDF and one that lists all annotations, a new option to create annotation variants with the ink highlighter and arrow tools enabled by default, and a lot more! Please refer to our Server and Web changelogs for a complete list of features and bug fixes.
To update your application, make sure to check out our 2018.5 Migration Guide.
Image Annotations
With image annotations, we’re adding another powerful annotation tool to PSPDFKit for Web. With one click or tap, you can now easily add JPEG, PNG, and PDF images to a PDF.
Like all our annotation options, this feature is fully accessible via our client and server APIs, as well as with PSPDFKit Instant and Instant JSON. Our iOS and Android clients will receive support for Instant images in the next version (Instant JSON is already supported).
Table of Contents and Annotation Sidebar
In addition to the thumbnail view, the sidebar was updated to add support for showing both the table of contents (PDF document outline) and an annotation list.
The table of contents data can also be accessed via client and server APIs.
Annotation Variants: Ink Highlighter and Arrow Tools
Similar to what we did with our other platforms, we’re adding support for annotation variants. Variants are custom toolbar buttons that can be used to create annotations with different presets. The most common use cases are the ink highlighter and arrow tools, and we’re thrilled to include these in the new version of PSPDFKit for Web.
In addition to variants, we’re also adding new client APIs to allow the customization of annotation presets. With this API, we’ve also changed the default behavior to persist the last known annotation properties for every individual annotation tool. We’ve also added an API to allow you to save those changes and restore the same changes after a full browser refresh.
Vertical Text Annotation Alignment
Sometimes text needs to be laid out vertically as well. To support this, we’re adding the option to vertically align text annotations.
WebAssembly Performance in V8
We’re super excited to see browser vendors using our WebAssembly Benchmark to improve their products. Just a few days ago, Google released Liftoff, a new baseline compiler for WebAssembly in V8. Check out the release blog post, which includes a section for PSPDFKit, showing a 56%+ faster initialization time.
I'm super excited to see our work being used as a reference for the new Chrome WebAssembly baseline compiler. Initialization time was definitely our bottleneck and it's great to see so much work being done on that front. 💪
— Philipp (@PhilippSpiess) August 20, 2018
Thanks @mathias & team for the amazing writeup. 🙌 https://t.co/jFgnqgCkMG
In addition to the Google update, we also have exciting news from the WebAssembly team at Microsoft that worked with us to achieve an impressive 2.25x speedup in our WebAssembly benchmark. We’ve updated our blog post with more details.
Along with all the new features, this release also includes a number of bug fixes and minor improvements. For a complete list of changes, see the PSPDFKit for Web 2018.5 and PSPDFKit Server 2018.5 changelogs.