PTPushButtonWidget

@interface PTPushButtonWidget : PTWidget

An object representing a push button used in a PDF Form.

  • Creates a Push Button Widget annotation and initialize it using given Cos/SDF object.

    Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

    Declaration

    Objective-C

    - (instancetype)initWithD:(PTObj *)d;

    Swift

    init!(d: PTObj!)

    Parameters

    d

    The object to use to initialize the PushButtonWidget

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithAnnot: (PTAnnot*)annot;

    Swift

    init!(annot: PTAnnot!)
  • Creates a new Push Button Widget annotation, in the specified document.

    Declaration

    Objective-C

    + (PTPushButtonWidget *)Create:(PTPDFDoc *)doc
                               pos:(PTPDFRect *)pos
                        field_name:(NSString *)field_name;

    Swift

    class func create(_ doc: PTPDFDoc!, pos: PTPDFRect!, field_name: String!) -> PTPushButtonWidget!

    Parameters

    doc

    The document to which the annotation is added.

    pos

    A rectangle specifying the annotation’s bounds, specified in user space coordinates.

    field_name

    The name of the field for which to create a PushButton widget.

    Return Value

    A newly created default Push Button Widget annotation.

  • Creates a new Widget annotation, in the specified document.

    Declaration

    Objective-C

    + (PTPushButtonWidget *)CreateWithField:(PTPDFDoc *)doc
                                        pos:(PTPDFRect *)pos
                                      field:(PTField *)field;

    Swift

    class func create(withField doc: PTPDFDoc!, pos: PTPDFRect!, field: PTField!) -> PTPushButtonWidget!

    Parameters

    doc

    The document to which the annotation is added.

    pos

    A rectangle specifying the annotation’s bounds, specified in user space coordinates.

    field

    the field for which to create a Push Button Widget.

    Return Value

    A newly created default Push Button Widget annotation.