We are happy to announce that PSPDFKit 8.5 for iOS is out today. In this release, we added advanced user interface options for changing the stacking order of annotations and the page binding of documents. We also simplified the process of trying PSPDFKit and then using it in production by unifying the demo and full downloads.
Annotation Stacking Order
We’ve added the ability for users to change the order in which annotations are stacked on the page. So, for example, if an ink stroke is behind a stamp annotation, the user can change the order so that the ink stroke will be on top of the stamp. This functionality is available from the edit mode in the annotation list.
When there are multiple annotations on a page, the annotation inspector now includes buttons to move an annotation forward, backward, to the front, or to the back.
The order can be set programmatically using the new
updateAnnotationsOnPageAtIndex:error:withUpdateBlock:. Changing the order in the UI can be disabled using
PDF documents support a metaphorical page binding, which is used when pages are laid out horizontally. Many languages use a left-to-right script, which calls for a page binding on the left edge. However, binding on the right edge is preferable for right-to-left scripts such Arabic and Hebrew and several East Asian scripts. The page binding is used with horizontal scrolling and in the thumbnails view. It has no effect when using vertical scrolling unless double-page mode is also enabled.
The page binding ought to be specified by the author when a PDF is created. However, sometimes this is not done, in which case most PDF readers will default to a left-edge binding.
We added an option in the document info editor that allows users to correct the page binding, and these changes will be saved into the PDF.
Note that this is independent of the device’s language setting. A user might have their device set to English and be reading an Arabic book. In this case, most of the user interface will be shown from left to right, and only the PDF pages will be ordered from right to left.
We’re always looking for ways to improve the customer experience with PSPDFKit. Previously, after downloading a trial of our framework and then deciding to go ahead and use our product, users would have had to download a separate version of PSPDFKit for use in production. We’ve simplified this so that a single download can be used both when on trial and in production, making the process of getting up and running with us faster and simpler.
We’ve added an optional JSON Podspec for development environments that require one. Learn more about using a JSON Podspec here.
We believe that, in general, the best user experience for opening links on iOS is to switch to the full Safari browser rather than using an in-app browser with
SFSafariViewController. This matches how
UITextView handles links, and it offers a lot more flexibility to the user. Therefore, we’ve changed the default action for opening links from the Safari view controller to the Safari app. If you like, you can change this back by setting the
PSPDFKit now supports rendering emojis in PDF forms. Express yourself! 💙
Finally, we’ve improved the clipboard integration in the Document Editor. Now, after you cut or copy pages from the Document Editor, you can paste just those pages as a new PDF document in other applications. The reverse works too: You can copy a PDF from another application and paste in the Document Editor to insert all the pages.
You can read about everything in PSPDFKit 8.5 for iOS in our changelog.
We’re hard at work getting PSPDFKit ready for iOS 13. We’re also very excited about bringing our full feature set — including the user interface — to the Mac, using Apple’s Project Catalyst. We’ll have more details about this later on.