Poppler Qt5 24.06.0
Public Types | Public Member Functions | List of all members
Poppler::FormFieldText Class Reference

#include <poppler-form.h>

Inheritance diagram for Poppler::FormFieldText:
Inheritance graph
Collaboration diagram for Poppler::FormFieldText:
Collaboration graph

Public Types

enum  TextType { Normal , Multiline , FileSelect }
- Public Types inherited from Poppler::FormField
enum  AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField }
enum  FormType { FormButton , FormText , FormChoice , FormSignature }

Public Member Functions

bool canBeSpellChecked () const
double getFontSize () const
bool isPassword () const
bool isRichText () const
int maximumLength () const
void setAppearanceText (const QString &text)
void setFontSize (int fontSize)
void setText (const QString &text)
QString text () const
Qt::Alignment textAlignment () const
TextType textType () const
FormType type () const override
- Public Member Functions inherited from Poppler::FormField
LinkactivationAction () const
LinkadditionalAction (AdditionalActionType type) const
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)
QString uiName () const

Detailed Description

A form field that represents a text input.


Member Enumeration Documentation

◆ TextType

The particular type of this text field.


A simple singleline text field.


A multiline text field.


An input field to select the path of a file on disk.

Member Function Documentation

◆ isPassword()

bool Poppler::FormFieldText::isPassword ( ) const

Whether this text field is a password input, eg its text must be replaced with asterisks.

Always false for FileSelect text fields.

◆ setAppearanceText()

void Poppler::FormFieldText::setAppearanceText ( const QString &  text)

Sets the text inside the Appearance Stream to the specified text.


◆ type()

FormType Poppler::FormFieldText::type ( ) const

The type of the field.

Implements Poppler::FormField.

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