Other Constants

The following constants are available globally.

  • The key for a NSDictionary<NSNumber *, NSArray<PTAnnot *> *> *, where the dictionary keys are NSNumber instances containing an int page number and the dictionary values are NSArray instances containing PTAnnots for the changed annotations.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTAddedAnnotationsUserInfoKey

    Swift

    let PTAddedAnnotationsUserInfoKey: String
  • The key for a NSDictionary<NSNumber *, NSArray<PTAnnot *> *> *, where the dictionary keys are NSNumber instances containing an int page number and the dictionary values are NSArray instances containing PTAnnots for the changed annotations.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTModifiedAnnotationsUserInfoKey

    Swift

    let PTModifiedAnnotationsUserInfoKey: String
  • The key for a NSDictionary<NSNumber *, NSArray<PTAnnot *> *> *, where the dictionary keys are NSNumber instances containing an int page number and the dictionary values are NSArray instances containing PTAnnots for the changed annotations.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTRemovedAnnotationsUserInfoKey

    Swift

    let PTRemovedAnnotationsUserInfoKey: String
  • The key for a NSDictionary<NSNumber *, NSArray<PTAnnot *> *> *, where the dictionary keys are NSNumber instances containing an int page number and the dictionary values are NSArray instances containing PTAnnots for the changed annotations.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTFlattenedAnnotationsUserInfoKey

    Swift

    let PTFlattenedAnnotationsUserInfoKey: String
  • The key for a NSArray containing PTPDFAnnotationChange instances describing the changes to annotations in the document.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTAnnotationChangesUserInfoKey

    Swift

    let PTAnnotationChangesUserInfoKey: String
  • The key for a NSString * of an XFDF string.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTXFDFUserInfoKey

    Swift

    let PTXFDFUserInfoKey: String
  • The key for the array of annotation types that this group of annotation presets belongs to.

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyTypes =
        @"types"

    Swift

    static let types: PTAnnotStylePresetKey
  • The key for the array of annotation presets.

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyPresets =
        @"presets"

    Swift

    static let presets: PTAnnotStylePresetKey
  • The key of a dictionary entry where a (stroke) color is defined as a hex string, e.g. “#00AA55”

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyColor =
        @"color"

    Swift

    static let color: PTAnnotStylePresetKey
  • The key of a dictionary entry where a fill color is defined as a hex string, e.g. “#00AA55”

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyFillColor =
        @"fillColor"

    Swift

    static let fillColor: PTAnnotStylePresetKey
  • The key of a dictionary entry where the text color of a FreeText annotation is defined as a hex string, e.g. “#00AA55”

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyTextColor =
        @"textColor"

    Swift

    static let textColor: PTAnnotStylePresetKey
  • The key of a dictionary entry where the text size of a FreeText annotation is defined as a number.

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyTextSize =
        @"textSize"

    Swift

    static let textSize: PTAnnotStylePresetKey
  • The key of a dictionary entry where the stroke thickness of an annotation is defined as a number.

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyThickness =
        @"thickness"

    Swift

    static let thickness: PTAnnotStylePresetKey
  • The key of a dictionary entry where the opacity of an annotation is defined as a number between 0 and 1.

    See more

    Declaration

    Objective-C

    static const PTAnnotStylePresetKey _Nonnull PTAnnotStylePresetKeyOpacity =
        @"opacity"

    Swift

    static let opacity: PTAnnotStylePresetKey
  • Posted before bookmarks are imported into a document.

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTBookmarkManagerWillImportBookmarksNotification

    Swift

    static let PTBookmarkManagerWillImportBookmarks: NSNotification.Name
  • Posted after bookmarks are imported into a document.

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTBookmarkManagerDidImportBookmarksNotification

    Swift

    static let PTBookmarkManagerDidImportBookmarks: NSNotification.Name
  • The key for a PTPDFDoc object.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTBookmarkManagerDocumentUserInfoKey

    Swift

    let PTBookmarkManagerDocumentUserInfoKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTCalloutTextHorizontalDistance

    Swift

    let PTCalloutTextHorizontalDistance: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTCalloutTextVerticalDistance

    Swift

    let PTCalloutTextVerticalDistance: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTCalloutTextContentRectWidth

    Swift

    let PTCalloutTextContentRectWidth: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTCalloutTextContentRectHeight

    Swift

    let PTCalloutTextContentRectHeight: String
  • Undocumented

    See more

    Declaration

    Objective-C

    extern NSString * const PTRadioButtonWidthKey

    Swift

    let PTRadioButtonWidthKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    extern NSString * const PTRadioButtonHeightKey

    Swift

    let PTRadioButtonHeightKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    extern NSString * const PTCheckBoxWidthKey

    Swift

    let PTCheckBoxWidthKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    extern NSString * const PTCheckBoxHeightKey

    Swift

    let PTCheckBoxHeightKey: String
  • Key of the format of the date text annotation

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTDateTextFormatKey

    Swift

    let PTDateTextFormatKey: String
  • Key of the date of the date text annotation

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTDateTextDateKey

    Swift

    let PTDateTextDateKey: String
  • Default format of the date text annotation

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTDateTextDefaultDateFormat

    Swift

    let PTDateTextDefaultDateFormat: String
  • The key for a PTTool object.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTToolManagerToolUserInfoKey

    Swift

    let PTToolManagerToolUserInfoKey: String
  • The key for a NSIndexSet object containing page numbers.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTToolManagerPageNumbersUserInfoKey

    Swift

    let PTToolManagerPageNumbersUserInfoKey: String
  • The key for an NSString instance.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTToolManagerTextUserInfoKey

    Swift

    let PTToolManagerTextUserInfoKey: String
  • The key for a UIPasteboard instance.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTToolManagerPasteboardUserInfoKey

    Swift

    let PTToolManagerPasteboardUserInfoKey: String
  • The key for a NSNumber object containing an int page number.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTToolManagerPreviousPageNumberUserInfoKey

    Swift

    let PTToolManagerPreviousPageNumberUserInfoKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsCategoryKey

    Swift

    let PTToolsSettingsCategoryKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsFooterDescriptionKey

    Swift

    let PTToolsSettingsFooterDescriptionKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsSettingKey

    Swift

    let PTToolsSettingsSettingKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString*  const PTToolsSettingsMultivalueKey

    Swift

    let PTToolsSettingsMultivalueKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsCategoryDefaultValueKey

    Swift

    let PTToolsSettingsCategoryDefaultValueKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsSettingNameKey

    Swift

    let PTToolsSettingsSettingNameKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsCategoryDescriptionKey

    Swift

    let PTToolsSettingsCategoryDescriptionKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsSettingKeyKey

    Swift

    let PTToolsSettingsSettingKeyKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsPlistNameKey

    Swift

    let PTToolsSettingsPlistNameKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsMinOSKey

    Swift

    let PTToolsSettingsMinOSKey: String
  • Undocumented

    See more

    Declaration

    Objective-C

    PT_EXPORT NSString * const PTToolsSettingsUnavailableKey

    Swift

    let PTToolsSettingsUnavailableKey: String
  • Posted before changes are undone by the undo-redo manager.

    The notification object is the undo-redo manager that posted the notification. There is no user info dictionary for this notification.

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTUndoRedoManagerWillUndoNotification

    Swift

    static let PTUndoRedoManagerWillUndo: NSNotification.Name
  • Posted after changes are undone by the undo-redo manager.

    The notification object is the undo-redo manager that posted the notification. The userInfo dictionary contains entries for the PTUndoRedoManagerInfoUserInfoKey key(s).

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTUndoRedoManagerDidUndoNotification

    Swift

    static let PTUndoRedoManagerDidUndo: NSNotification.Name
  • Posted before changes are redone by the undo-redo manager.

    The notification object is the undo-redo manager that posted the notification. There is no user info dictionary for this notification.

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTUndoRedoManagerWillRedoNotification

    Swift

    static let PTUndoRedoManagerWillRedo: NSNotification.Name
  • Posted after changes are redone by the undo-redo manager.

    The notification object is the undo-redo manager that posted the notification. The userInfo dictionary contains entries for the PTUndoRedoManagerInfoUserInfoKey key(s).

    See more

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull PTUndoRedoManagerDidRedoNotification

    Swift

    static let PTUndoRedoManagerDidRedo: NSNotification.Name
  • The key for a PTUndoRedoInfo object describing an undo/redo change.

    See more

    Declaration

    Objective-C

    extern NSString *const _Nonnull PTUndoRedoManagerInfoUserInfoKey

    Swift

    let PTUndoRedoManagerInfoUserInfoKey: String