The Field Class

class PyPDF2.generic.Field(data)

A class representing a field dictionary. This class is accessed through getFields()

additionalActions

Read-only property accessing the additional actions dictionary. This dictionary defines the field’s behavior in response to trigger events. See Section 8.5.2 of the PDF 1.7 reference.

altName

Read-only property accessing the alternate name of this field.

defaultValue

Read-only property accessing the default value of this field.

fieldType

Read-only property accessing the type of this field.

flags

Read-only property accessing the field flags, specifying various characteristics of the field (see Table 8.70 of the PDF 1.7 reference).

kids

Read-only property accessing the kids of this field.

mappingName

Read-only property accessing the mapping name of this field. This name is used by PyPDF2 as a key in the dictionary returned by getFields()

name

Read-only property accessing the name of this field.

parent

Read-only property accessing the parent of this field.

value

Read-only property accessing the value of this field. Format varies based on field type.