Class: Pdfrb::Model::Type::TextField

Inherits:
Field show all
Defined in:
lib/pdfrb/model/type/text_field.rb

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid

Instance Method Summary collapse

Methods inherited from Field

#additional_actions, #alternate_field_name, #appearance_characteristics, #button?, #choice?, #default_value, #field_name, #field_type, #field_value, #flags, #fully_qualified_name, #has_kids?, #kids, #mapping_field_name, #no_export?, #parent, #read_only?, #required?, #resolved_parent, #root_field, #signature?, #terminal_field?, #text?

Methods inherited from Cos::Dictionary

#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, own_fields, #pdf_type, register_type, type_map, #validate

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#comb?Boolean

Returns:

  • (Boolean)


16
# File 'lib/pdfrb/model/type/text_field.rb', line 16

def comb?; flags & 0x1000000 != 0; end

#do_not_scroll?Boolean

Returns:

  • (Boolean)


15
# File 'lib/pdfrb/model/type/text_field.rb', line 15

def do_not_scroll?; flags & 0x800000 != 0; end

#do_not_spell_check?Boolean

Returns:

  • (Boolean)


14
# File 'lib/pdfrb/model/type/text_field.rb', line 14

def do_not_spell_check?; flags & 0x400000 != 0; end

#file_select?Boolean

Returns:

  • (Boolean)


13
# File 'lib/pdfrb/model/type/text_field.rb', line 13

def file_select?; flags & 0x100000 != 0; end

#max_lenObject



7
# File 'lib/pdfrb/model/type/text_field.rb', line 7

def max_len; self[:MaxLen]; end

#multiline?Boolean

Returns:

  • (Boolean)


11
# File 'lib/pdfrb/model/type/text_field.rb', line 11

def multiline?; flags & 0x1000 != 0; end

#password?Boolean

Returns:

  • (Boolean)


12
# File 'lib/pdfrb/model/type/text_field.rb', line 12

def password?; flags & 0x2000 != 0; end

#rich_text?Boolean

Returns:

  • (Boolean)


17
# File 'lib/pdfrb/model/type/text_field.rb', line 17

def rich_text?; flags & 0x2000000 != 0; end

#rich_text_valueObject



9
# File 'lib/pdfrb/model/type/text_field.rb', line 9

def rich_text_value; self[:RV]; end

#valueObject



8
# File 'lib/pdfrb/model/type/text_field.rb', line 8

def value; self[:V]; end