field_data property

FieldStart.field_data property

Gets custom field data which is associated with the field.

@property
def field_data(self) -> bytes:
    ...

Examples

Shows how to get data associated with the field.

doc = aw.Document(MY_DIR + "Field sample - Field with data.docx")

field = doc.range.fields[2]
print(field.start.field_data)

See Also