PSPDFWidgetAnnotation


@interface PSPDFWidgetAnnotation : PSPDFAnnotation

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 (assign, readwrite, nonatomic, nullable) PSPDFAction *action;

    Swift

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

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) UIColor *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 (assign, readwrite, nonatomic) NSInteger widgetRotation;

    Swift

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

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFAppearanceCharacteristics *appearanceCharacteristics;

    Swift

    var appearanceCharacteristics: PSPDFAppearanceCharacteristics? { get set }