PSPDFDrawCreateMode

Objective-C

enum PSPDFDrawCreateMode : NSUInteger {}

Swift

@frozen enum DrawCreateMode : UInt, @unchecked Sendable

Defines how annotations, which are drawn, are created.

  • Every stroke will result in a separate ink annotation. This creates the maximum number of annotations.

    Declaration

    Objective-C

    PSPDFDrawCreateModeSeparate

    Swift

    case separate = 0
  • Strokes that have the same color/width are merged. This creates the minimum number of annotations.

    Declaration

    Objective-C

    PSPDFDrawCreateModeMergeIfPossible

    Swift

    case mergeIfPossible = 1
  • Stokes that are drawn close together without too much delay are merged. This is the default.

    Declaration

    Objective-C

    PSPDFDrawCreateModeAutomatic

    Swift

    case automatic = 2