PSPDFHideAction

Objective-C


@interface PSPDFHideAction : PSPDFAction

Swift

class HideAction : Action

A hide action (PDF 1.2) hides or shows one or more annotations on the screen by setting or clearing their Hidden flags (see 12.5.3, “Annotation Flags”). This type of action can be used in combination with appearance streams and trigger events (Sections 12.5.5, “Appearance Streams,” and 12.6.3, “Trigger Events”) to display pop-up help information on the screen.

  • Designated initializers.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAssociatedAnnotations:
                                (nonnull NSArray<__kindof PSPDFAnnotation *> *)
                                    annotations
                                               shouldHide:(BOOL)shouldHide;

    Swift

    init(associatedAnnotations annotations: [Annotation], shouldHide: Bool)
  • Either hide (YES) or show (NO) the referenced annotation/form object. This is achieved by removing both PSPDFAnnotationFlagInvisible and PSPDFAnnotationFlagNoView and toggling PSPDFAnnotationFlagHidden.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL shouldHide;

    Swift

    var shouldHide: Bool { get }
  • The associated annotations. (weakly referenced)

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<__kindof PSPDFAnnotation *> *_Nonnull annotations;

    Swift

    var annotations: [Annotation] { get }