Field

Overview

Field is a type in Aspose.PDF FOSS for Go.

Field is the common interface implemented by every concrete form field type (TextBoxField, CheckboxField, RadioButtonField, etc.).

Available methods include: Flatten, FullName, IsReadOnly, IsRequired, PageIndex, PartialName, Rect, SetStyle, SetValue, Style, Value. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
PartialName()stringReturns the partial name.
FullName()stringReturns the full name.
Value()stringReturns the value.
SetValue(s: string)errorSets the value value.
IsReadOnly()boolReturns true if read only is set.
IsRequired()boolReturns true if required is set.
PageIndex()intReturns the page index.
Rect()RectangleReturns the rect.
SetStyle(s: FieldStyle)errorSetStyle applies visual styling (colours, border, font, alignment) and regenerates the widget appearance.
Style()FieldStyleReturns the style.
Flatten()errorFlatten bakes this single field’s appearance into its page content and removes the field, leaving other fields and the /AcroForm intact.

See Also

 English