Class: Poppler::FormField
- Inherits:
-
Object
- Object
- Poppler::FormField
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#action ⇒ Poppler::Action
Retrieves the action (Poppler::Action) that shall be performed when field is activated, or nil.
-
#alternate_ui_name ⇒ String
Gets the alternate ui name of field.
-
#button_get_button_type ⇒ Poppler::FormButtonType
Gets the button type of field.
-
#button_get_state ⇒ Boolean
Queries a Poppler::FormField and returns its current state.
-
#button_set_state(state) ⇒ nil
Sets the status of field.
-
#choice_can_select_multiple ⇒ Boolean
Checks whether field allows multiple choices to be selected.
- #choice_commit_on_change ⇒ Boolean
-
#choice_do_spell_check ⇒ Boolean
Checks whether spell checking should be done for the contents of field.
-
#choice_get_choice_type ⇒ Poppler::FormChoiceType
Gets the choice type of field.
-
#choice_get_item(index) ⇒ String
Returns the contents of the item on field at the given index.
-
#choice_get_n_items ⇒ Integer
Returns the number of items on field.
-
#choice_get_text ⇒ String
Retrieves the contents of field.
-
#choice_is_editable ⇒ Boolean
Checks whether field is editable.
-
#choice_is_item_selected(index) ⇒ Boolean
Checks whether the item at the given index on field is currently selected.
-
#choice_select_item(index) ⇒ nil
Selects the item at the given index on field.
-
#choice_set_text(text) ⇒ nil
Sets the text in field to the given value, replacing the current contents.
-
#choice_toggle_item(index) ⇒ nil
Changes the state of the item at the given index.
-
#choice_unselect_all ⇒ nil
Unselects all the items on field.
-
#field_type ⇒ Poppler::FormFieldType
Gets the type of field.
-
#font_size ⇒ Float
Gets the font size of field.
-
#get_additional_action(type) ⇒ Poppler::Action
Retrieves the action (Poppler::Action) that shall be performed when an additional action is triggered on field, or nil.
-
#id ⇒ Integer
Gets the id of field.
-
#is_read_only ⇒ Boolean
Checks whether field is read only.
-
#mapping_name ⇒ String
Gets the mapping name of field that is used when exporting interactive form field data from the document.
-
#name ⇒ String
Gets the fully qualified name of field.
-
#partial_name ⇒ String
Gets the partial name of field.
-
#signature_validate_async(flags, cancellable, callback, user_data) ⇒ nil
Asynchronously validates the cryptographic signature contained in signature_field.
-
#signature_validate_finish(result) ⇒ Poppler::SignatureInfo
Finishes validation of the cryptographic signature contained in signature_field.
-
#signature_validate_sync(flags, cancellable) ⇒ Poppler::SignatureInfo
Synchronously validates the cryptographic signature contained in signature_field.
- #text_do_scroll ⇒ Boolean
-
#text_do_spell_check ⇒ Boolean
Checks whether spell checking should be done for the contents of field.
-
#text_get_max_len ⇒ Integer
Retrieves the maximum allowed length of the text in field.
-
#text_get_text ⇒ String
Retrieves the contents of field.
-
#text_get_text_type ⇒ Poppler::FormTextType
Gets the text type of field.
-
#text_is_password ⇒ Boolean
Checks whether content of field is a password and it must be hidden.
-
#text_is_rich_text ⇒ Boolean
Checks whether the contents of field are rich text.
-
#text_set_text(text) ⇒ nil
Sets the text in field to the given value, replacing the current contents.
Instance Method Details
#action ⇒ Poppler::Action
Retrieves the action (Poppler::Action) that shall be performed when field is activated, or nil
#alternate_ui_name ⇒ String
Gets the alternate ui name of field. This name is also commonly used by pdf producers/readers to show it as a tooltip when field area is hovered by a pointing device (eg. mouse).
#button_get_button_type ⇒ Poppler::FormButtonType
Gets the button type of field
#button_get_state ⇒ Boolean
Queries a Poppler::FormField and returns its current state. Returns true if field is pressed in and false if it is raised.
#button_set_state(state) ⇒ nil
Sets the status of field. Set to true if you want the Poppler::FormField to be 'pressed in', and false to raise it.
#choice_can_select_multiple ⇒ Boolean
Checks whether field allows multiple choices to be selected
#choice_commit_on_change ⇒ Boolean
#choice_do_spell_check ⇒ Boolean
Checks whether spell checking should be done for the contents of field
#choice_get_choice_type ⇒ Poppler::FormChoiceType
Gets the choice type of field
#choice_get_item(index) ⇒ String
Returns the contents of the item on field at the given index
#choice_get_n_items ⇒ Integer
Returns the number of items on field
#choice_get_text ⇒ String
Retrieves the contents of field.
#choice_is_editable ⇒ Boolean
Checks whether field is editable
#choice_is_item_selected(index) ⇒ Boolean
Checks whether the item at the given index on field is currently selected
#choice_select_item(index) ⇒ nil
Selects the item at the given index on field
#choice_set_text(text) ⇒ nil
Sets the text in field to the given value, replacing the current contents
#choice_toggle_item(index) ⇒ nil
Changes the state of the item at the given index
#choice_unselect_all ⇒ nil
Unselects all the items on field
#field_type ⇒ Poppler::FormFieldType
Gets the type of field
#font_size ⇒ Float
Gets the font size of field
WARNING: This function always returns 0. Contact the poppler mailing list if you're interested in implementing it properly
#get_additional_action(type) ⇒ Poppler::Action
Retrieves the action (Poppler::Action) that shall be performed when an additional action is triggered on field, or nil.
#id ⇒ Integer
Gets the id of field
#is_read_only ⇒ Boolean
Checks whether field is read only
#mapping_name ⇒ String
Gets the mapping name of field that is used when exporting interactive form field data from the document
#name ⇒ String
Gets the fully qualified name of field. It's constructed by concatenating the partial field names of the field and all of its ancestors.
#partial_name ⇒ String
Gets the partial name of field.
#signature_validate_async(flags, cancellable, callback, user_data) ⇒ nil
Asynchronously validates the cryptographic signature contained in signature_field.
#signature_validate_finish(result) ⇒ Poppler::SignatureInfo
Finishes validation of the cryptographic signature contained in signature_field. See poppler_form_field_signature_validate_async().
#signature_validate_sync(flags, cancellable) ⇒ Poppler::SignatureInfo
Synchronously validates the cryptographic signature contained in signature_field.
#text_do_scroll ⇒ Boolean
#text_do_spell_check ⇒ Boolean
Checks whether spell checking should be done for the contents of field
#text_get_max_len ⇒ Integer
Retrieves the maximum allowed length of the text in field
#text_get_text ⇒ String
Retrieves the contents of field.
#text_get_text_type ⇒ Poppler::FormTextType
Gets the text type of field.
#text_is_password ⇒ Boolean
Checks whether content of field is a password and it must be hidden
#text_is_rich_text ⇒ Boolean
Checks whether the contents of field are rich text
#text_set_text(text) ⇒ nil
Sets the text in field to the given value, replacing the current contents.