Poppler Qt6 25.12.90
Poppler::FormField Class Referenceabstract

#include <poppler-form.h>

Inheritance diagram for Poppler::FormField:

Public Types

enum  AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField }
enum  FormType { FormButton , FormText , FormChoice , FormSignature }

Public Member Functions

std::unique_ptr< LinkactivationAction () const
std::unique_ptr< LinkadditionalAction (AdditionalActionType type) const
std::unique_ptr< LinkadditionalAction (Annotation::AdditionalActionType type) const
QString fullyQualifiedName () const
int id () const
bool isPrintable () const
bool isReadOnly () const
bool isVisible () const
QString name () const
QRectF rect () const
void setName (const QString &name) const
void setPrintable (bool value)
void setReadOnly (bool value)
void setVisible (bool value)
virtual FormType type () const =0
QString uiName () const

Detailed Description

The base class representing a form field.

Member Enumeration Documentation

◆ AdditionalActionType

Describes the flags from the form 'AA' dictionary.

Enumerator
FieldModified 

A JavaScript action to be performed when the user modifies the field.

FormatField 

A JavaScript action to be performed before the field is formatted to display its value.

ValidateField 

A JavaScript action to be performed when the field value changes.

CalculateField 

A JavaScript action to be performed when the field needs to be recalculated.

◆ FormType

The different types of form field.

Enumerator
FormButton 

A button field. See ButtonType.

FormText 

A text field. See TextType.

FormChoice 

A single choice field. See ChoiceType.

FormSignature 

A signature field.

Member Function Documentation

◆ activationAction()

std::unique_ptr< Link > Poppler::FormField::activationAction ( ) const

The activation action of this form field.

Note
It may be null.

◆ rect()

QRectF Poppler::FormField::rect ( ) const
Returns
The size of the field, in normalized coordinates, i.e. [0..1] with regard to the dimensions (cropbox) of the page

◆ type()

virtual FormType Poppler::FormField::type ( ) const
pure virtual

The documentation for this class was generated from the following file: