Getting the Currently Used Version


Getting the version string evolved over the years in PSPDFKit.

The current way to ask for the framework version at runtime is:

Copy
1
let pspdfVersionString = PSPDFKit.sharedInstance.versionString
Copy
1
NSString *pspdfVersionString = PSPDFKit.sharedInstance.versionString;

Another option is to open PSPDFKit.framework and you will find the version number in the file PSPDFKit-Version.

Starting with PSPDFKit 6.6.0 for iOS the topmost folder in the downloaded disk image is also named like the version of PSPDFKit.

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