Example Projects

PSPDFKit ships with a few projects containing a lot of examples to help you with your code. You can find these projects in the Examples folder of the .dmg file you downloaded from your customer portal or in the demo download.

What follows is a rundown of the example projects and what they contain.

PSPDFKit Catalog

This project contains most of the examples. Here you’ll find Objective-C and Swift sample code for:

  • PDFViewController customizations
  • Toolbar customizations
  • Annotation processing with Processor
  • Document editing with PDFDocumentEditor
  • Multimedia annotations like videos and GIFs
  • Forms and digital signatures
  • Security-related topics like encryption and password protection
  • Import/export formats like XFDF and JSON
  • …lots of other use cases.

💡 Tip: PSPDFKit Catalog also contains the Kiosk Grid example, which lets you open every document in the Samples folder. This means you just have to put your document into Samples and you can open it in the kiosk example with no customizations needed.

Minimal

This project shows how to perform a minimal PSPDFKit integration in a basic iOS application. It also contains code for simple use cases of Processor and PDFLibrary. The example is written in Swift.