Example Projects


PSPDFKit ships with a few projects containing a lot of examples to help you with your own 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.

Here is a rundown of the example projects and what they contain:

PSPDFCatalog

This project contains most of the examples. In here you can find Objective-C and Swift sample code for:

  • PSPDFViewController customisations
  • Toolbar customisations
  • Annotation processing with PSPDFProcessor
  • Document editing with PSPDFDocumentEditor
  • 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
  • ... and lots of other use cases

Tip: PSPDFCatalog also contains the "Kiosk Grid" example, which lets you open every document contained in the Samples folder. This means you just have to put your document into the Samples and you can open it in the kiosk example, no customisations needed.

PSPDFSimple

Showcases a very common use case of presenting a PDF using a PSPDFViewController subclass in a storyboard. This very simple project should help you getting started.

SwiftExample

Written in Swift 3, this project contains code for simple use cases of PSPDFProcessor and PSPDFLibrary.

Was this page helpful? We're happy to answer any questions.