Method: HexaPDF::Type::AcroForm::TextField#concrete_field_type
- Defined in:
- lib/hexapdf/type/acro_form/text_field.rb
#concrete_field_type ⇒ Object
Returns the concrete text field type, either :single_line_text_field, :multiline_text_field, :password_field, :file_select_field, :comb_text_field or :rich_text_field.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/hexapdf/type/acro_form/text_field.rb', line 202 def concrete_field_type if flagged?(:multiline) :multiline_text_field elsif flagged?(:password) :password_field elsif flagged?(:file_select) :file_select_field elsif flagged?(:comb) :comb_text_field elsif flagged?(:rich_text) :rich_text_field else :single_line_text_field end end |