PTTextWidget
@interface PTTextWidget : PTWidget
An object representing a Text Box used in a PDF Form.
-
Creates a Text 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.
Parameters
dThe object to use to initialize the Text Widget
-
Undocumented
Declaration
Objective-C
- (instancetype)init;Swift
init!() -
Creates a new Text Widget annotation, in the specified document.
Declaration
Parameters
docThe document to which the annotation is added.
posA rectangle specifying the annotation’s bounds, specified in user space coordinates.
field_nameThe name of the field for which to create a Text widget.
Return Value
A newly created blank Text Widget annotation.
-
Creates a new Text Widget annotation, in the specified document.
Declaration
Parameters
docThe document to which the annotation is added.
posA rectangle specifying the annotation’s bounds, specified in user space coordinates.
fieldthe field for which to create a Text Widget.
Return Value
A newly created blank Widget annotation.
-
Sets the text content of the Text Widget.
Declaration
Objective-C
- (void)SetText:(NSString *)text;Swift
func setText(_ text: String!)Parameters
textThe text to be displayed in the Text Widget.
-
Retrieves the text content of the Text Widget.
Declaration
Objective-C
- (NSString *)GetText;Swift
func getText() -> String!Return Value
The Text Widget contents.
-
The text field’s default style string.
Declaration
Objective-C
@property (nonatomic, copy, readwrite, getter=GetDefaultStyle, setter=SetDefaultStyle:, nullable) NSString *defaultStyle;Swift
var defaultStyle: String? { get set }
PTTextWidget Class Reference