PSPDFWidgetAnnotation

Objective-C


@interface PSPDFWidgetAnnotation : PSPDFAnnotation <PSPDFOverridable>

Swift

class WidgetAnnotation : Annotation, Overridable

The PDF ‘Widget’ annotation. A Widget usually is a button, much like a link annotation.

  • The PDF action executed on touch.

    Declaration

    Objective-C

    @property (nullable) PSPDFAction *action;

    Swift

    var action: Action? { get set }
  • Overrides the parent borderColor to have a real backing store. Defined in the appearance characteristics dictionary.

    Declaration

    Objective-C

    @property (nullable) NSColor *borderColor;

    Swift

    var borderColor: NSColor? { get set }
  • (Optional) The number of degrees by which the widget annotation shall be rotated counterclockwise relative to the page. The value shall be a multiple of 90. Default value: 0. Defined in the appearance characteristics dictionary.

    Declaration

    Objective-C

    @property NSInteger widgetRotation;

    Swift

    var widgetRotation: Int { get set }
  • (Optional) Advanced appearance characteristics for this widget annotation (/MK dictionary)

    Declaration

    Objective-C

    @property (nullable) PSPDFAppearanceCharacteristics *appearanceCharacteristics;

    Swift

    var appearanceCharacteristics: PSPDFAppearanceCharacteristics? { get set }