Today we’re shipping PSPDFKit 1.9 for Windows. This release features new properties for annotations, XFDF support, data providers for abstracting the source and destination of PDF data, the ability to disable copying of PDF text to the clipboard, smooth drawing, and more.
Please refer to our PSPDFKit 1.9 for Windows changelog for a complete list of changes in this release.
New Annotation Properties
With this release, the
IAnnotation interface gains the following new properties:
||The date of the annotation creation.|
||An arbitrary string.|
||A property that may be used to identify the annotation.|
||Prevents the annotation from being rendered in the view.|
||The date the annotation was last updated.|
Click on the linked documentation for detailed descriptions of each property.
XFDF is an XML-like standard from Adobe for encoding annotations and forms (see this XFDF overview). It is compatible with Adobe Acrobat and several other third-party frameworks.
PSPDFKit for Windows now supports both reading and writing XFDF. Read more in the guide here.
A data provider allows you to define how to read and write data, giving you the freedom to store your data in the exact way you need it — for example, loading PDF documents from arbitrary sources like cloud hosts, device RAM, content providers, and others. This is especially helpful if you want to support your own encryption or compression scheme.
In addition to loading documents using a
IBuffer, PSPDFKit can load documents using an implementation of
IDataProvider defines a common interface for PSPDFKit to load from.
For write support, the interface
IDataSink is provided.
An example demonstrating how to implement these interfaces is provided in the Catalog app supplied with the SDK.
Preventing Text Copy
When copying of text is prevented, it’s still possible to select text for the purposes of annotating, but copying to the clipboard using either the shortcut or a context menu will have no effect.
Our previous drawing implementation simply connected the drawing points with straight lines. This worked well, but sometimes you can spot edges in the drawing, which does not look natural. Fortunately, we can get a better result by fitting curves between the points to get smooth line drawings. This will result in a much better drawing experience for your users.