PSPDFTextCheckingType

Objective-C

enum PSPDFTextCheckingType {}

Swift

struct TextCheckingType : OptionSet

Creates annotations based on the text content. See annotationsByDetectingLinkTypes:forPagesAtIndexes:options:progress:error:.

  • Don’t detect anything in text.

    Declaration

    Objective-C

    PSPDFTextCheckingTypeNone = 0
  • Detect links in text.

    Declaration

    Objective-C

    PSPDFTextCheckingTypeLink = 1 << 0

    Swift

    static var link: TextCheckingType { get }
  • Detect phone numbers in text.

    Declaration

    Objective-C

    PSPDFTextCheckingTypePhoneNumber = 1 << 1

    Swift

    static var phoneNumber: TextCheckingType { get }
  • Detect all available types in text.

    Declaration

    Objective-C

    PSPDFTextCheckingTypeAll = (9223372036854775807L * 2UL + 1UL)

    Swift

    static var all: TextCheckingType { get }