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.).
This type declares 11 methods for Field objects in Go programs.
Available methods include: Flatten, FullName, IsReadOnly, IsRequired, PageIndex, PartialName, Rect, SetStyle, SetValue, Style, Value.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
PartialName() → string | Returns the partial name. |
FullName() → string | Returns the full name. |
Value() → string | Returns the value. |
SetValue(s: string) → error | Sets the value value. |
IsReadOnly() → bool | Returns true if read only is set. |
IsRequired() → bool | Returns true if required is set. |
PageIndex() → int | Returns the page index. |
Rect() → Rectangle | Returns the rect. |
SetStyle(s: FieldStyle) → error | SetStyle applies visual styling (colours, border, font, alignment) and regenerates the widget appearance. |
Style() → FieldStyle | Returns the style. |
Flatten() → error | Flatten bakes this single field’s appearance into its page content and removes the field, leaving other fields and the /AcroForm intact. |