PSPDFInstantJSONVersion

Objective-C

enum PSPDFInstantJSONVersion : NSInteger {}

Swift

@frozen enum InstantJSONVersion : Int, @unchecked Sendable

Instant JSON versions

  • Let PSPDFKit pick the recommended version. This will typically be the latest version.

    Declaration

    Objective-C

    PSPDFInstantJSONVersionAutomatic = 0

    Swift

    case automatic = 0
  • Version 1 — Use for compatibility with clients who have not upgraded to later versions of PSPDFKit. For iOS, this is up to and including PSPDFKit 12.0.3 for iOS.

    Declaration

    Objective-C

    PSPDFInstantJSONVersion1 = 1

    Swift

    case v1 = 1
  • Version 2 — The latest version, supported by PSPDFKit 12.1 for iOS and later.

    Declaration

    Objective-C

    PSPDFInstantJSONVersion2 = 2

    Swift

    case v2 = 2