Poppler.FormField¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Poppler.FormField(**kwargs)¶
- Bases:
- Abstract:
No
- button_get_button_type()¶
- Returns:
Poppler.FormButtonType
of self- Return type:
Gets the button type of self
- button_get_state()¶
- Returns:
current state of self
- Return type:
Queries a
Poppler.FormField
and returns its current state. ReturnsTrue
if self is pressed in andFalse
if it is raised.
- button_set_state(state)¶
-
Sets the status of self. Set to
True
if you want thePoppler.FormField
to be ‘pressed in’, andFalse
to raise it.
- choice_can_select_multiple()¶
-
Checks whether self allows multiple choices to be selected
- choice_do_spell_check()¶
-
Checks whether spell checking should be done for the contents of self
- choice_get_choice_type()¶
- Returns:
Poppler.FormChoiceType
of self- Return type:
Gets the choice type of self
- choice_get_item(index)¶
- Parameters:
index (
int
) – the index of the item- Returns:
a new allocated string. It must be freed with
GLib.free
() when done.- Return type:
Returns the contents of the item on self at the given index
- choice_get_n_items()¶
- Returns:
the number of items on self
- Return type:
Returns the number of items on self
- choice_get_text()¶
-
Retrieves the contents of self.
- choice_is_editable()¶
-
Checks whether self is editable
- choice_is_item_selected(index)¶
- Parameters:
index (
int
) – the index of the item- Returns:
True
if item at index is currently selected- Return type:
Checks whether the item at the given index on self is currently selected
- choice_select_item(index)¶
- Parameters:
index (
int
) – the index of the item
Selects the item at the given index on self
- choice_set_text(text)¶
- Parameters:
text (
str
) – the new text
Sets the text in self to the given value, replacing the current contents
- choice_toggle_item(index)¶
- Parameters:
index (
int
) – the index of the item
Changes the state of the item at the given index
- choice_unselect_all()¶
Unselects all the items on self
- get_action()¶
- Returns:
the action to perform. The returned object is owned by self and should not be freed
- Return type:
Retrieves the action (
Poppler.Action
) that shall be performed when self is activated, orNone
New in version 0.18.
- get_additional_action(type)¶
- Parameters:
type (
Poppler.AdditionalActionType
) – the type of additional action- Returns:
the action to perform. The returned object is owned by self and should not be freed.
- Return type:
Retrieves the action (
Poppler.Action
) that shall be performed when an additional action is triggered on self, orNone
.New in version 0.72.
- get_alternate_ui_name()¶
-
Gets the alternate ui name of self. This name is also commonly used by pdf producers/readers to show it as a tooltip when self area is hovered by a pointing device (eg. mouse).
New in version 0.88.
- get_field_type()¶
- Returns:
Poppler.FormFieldType
of self- Return type:
Gets the type of self
- get_font_size()¶
- Returns:
the font size of self
- Return type:
Gets the font size of self
WARNING: This function always returns 0. Contact the poppler mailing list if you’re interested in implementing it properly
- get_mapping_name()¶
-
Gets the mapping name of self that is used when exporting interactive form field data from the document
New in version 0.16.
- get_name()¶
-
Gets the fully qualified name of self. It’s constructed by concatenating the partial field names of the field and all of its ancestors.
New in version 0.16.
- get_partial_name()¶
-
Gets the partial name of self.
New in version 0.16.
- is_read_only()¶
-
Checks whether self is read only
- signature_validate_async(flags, cancellable, callback, *user_data)¶
- Parameters:
flags (
Poppler.SignatureValidationFlags
) –Poppler.SignatureValidationFlags
flags influencing process of validation of the field signaturecancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
objectcallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the signature is validateduser_data (
object
orNone
) – the data to pass to callback function
Asynchronously validates the cryptographic signature contained in signature_field.
New in version 21.12.0.
- signature_validate_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a
Poppler.SignatureInfo
structure containing signature metadata and validation status Free the returned structure withPoppler.SignatureInfo.free
().- Return type:
Finishes validation of the cryptographic signature contained in signature_field. See
Poppler.FormField.signature_validate_async
().New in version 21.12.0.
- signature_validate_sync(flags, cancellable)¶
- Parameters:
flags (
Poppler.SignatureValidationFlags
) –Poppler.SignatureValidationFlags
flags influencing process of validation of the field signaturecancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object
- Raises:
- Returns:
a
Poppler.SignatureInfo
structure containing signature metadata and validation status Free the returned structure withPoppler.SignatureInfo.free
().- Return type:
Synchronously validates the cryptographic signature contained in signature_field.
New in version 21.12.0.
- text_do_spell_check()¶
-
Checks whether spell checking should be done for the contents of self
- text_get_max_len()¶
- Returns:
the maximum allowed number of characters in self, or -1 if there is no maximum.
- Return type:
Retrieves the maximum allowed length of the text in self
- text_get_text()¶
-
Retrieves the contents of self.
- text_get_text_type()¶
- Returns:
Poppler.FormTextType
of self- Return type:
Gets the text type of self.
- text_is_password()¶
-
Checks whether content of self is a password and it must be hidden
- text_is_rich_text()¶
-
Checks whether the contents of self are rich text