Class: Poppler::TextField

Inherits:
FormField
  • Object
show all
Defined in:
lib/poppler.rb,
ext/poppler/rbpoppler-form-field.c

Instance Method Summary collapse

Instance Method Details

#file_select?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/poppler.rb', line 81

def file_select?
  type == FormTextType::FILE_SELECT
end

#max_lengthObject



116
117
118
119
120
# File 'ext/poppler/rbpoppler-form-field.c', line 116

static VALUE
text_field_get_max_length(VALUE self)
{
    return INT2NUM(poppler_form_field_text_get_max_len(RVAL2TF(self)));
}

#multiline?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/poppler.rb', line 77

def multiline?
  type == FormTextType::MULTILINE
end

#normal?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/poppler.rb', line 85

def normal?
  type == FormTextType::NORMAL
end

#password?Boolean

Returns:

  • (Boolean)


140
141
142
143
144
# File 'ext/poppler/rbpoppler-form-field.c', line 140

static VALUE
text_field_is_password(VALUE self)
{
    return CBOOL2RVAL(poppler_form_field_text_is_password(RVAL2TF(self)));
}

#rich_text?Boolean

Returns:

  • (Boolean)


134
135
136
137
138
# File 'ext/poppler/rbpoppler-form-field.c', line 134

static VALUE
text_field_is_rich_text(VALUE self)
{
    return CBOOL2RVAL(poppler_form_field_text_is_rich_text(RVAL2TF(self)));
}

#scroll?Boolean

Returns:

  • (Boolean)


128
129
130
131
132
# File 'ext/poppler/rbpoppler-form-field.c', line 128

static VALUE
text_field_do_scroll(VALUE self)
{
    return CBOOL2RVAL(poppler_form_field_text_do_scroll(RVAL2TF(self)));
}

#set_text(text) ⇒ Object



109
110
111
112
113
114
# File 'ext/poppler/rbpoppler-form-field.c', line 109

static VALUE
text_field_set_text(VALUE self, VALUE text)
{
    poppler_form_field_text_set_text(RVAL2TF(self), RVAL2CSTR_ACCEPT_NIL(text));
    return Qnil;
}

#spell_check?Boolean

Returns:

  • (Boolean)


122
123
124
125
126
# File 'ext/poppler/rbpoppler-form-field.c', line 122

static VALUE
text_field_do_spell_check(VALUE self)
{
    return CBOOL2RVAL(poppler_form_field_text_do_spell_check(RVAL2TF(self)));
}

#textObject



103
104
105
106
107
# File 'ext/poppler/rbpoppler-form-field.c', line 103

static VALUE
text_field_get_text(VALUE self)
{
    return CSTR2RVAL(poppler_form_field_text_get_text(RVAL2TF(self)));
}

#typeObject

Text Field



97
98
99
100
101
# File 'ext/poppler/rbpoppler-form-field.c', line 97

static VALUE
text_field_get_text_type(VALUE self)
{
    return FTT2RVAL(poppler_form_field_text_get_text_type(RVAL2TF(self)));
}