Versions in this module Expand all Collapse all v0 v0.7.0-3 Apr 16, 2024 v0.7.0-2 Apr 16, 2024 v0.7.0-1 Apr 16, 2024 v0.6.0 Jan 26, 2024 Changes in this version + func ExportFormJSON(xRefTable *model.XRefTable, source string, w io.Writer) (bool, error) + func FieldMap(fieldNames, formRecord []string) (map[string]CSVFieldAttributes, map[string]*Page, error) + func FillDetails(form *Form, fieldMap map[string]CSVFieldAttributes) ... + func FillForm(ctx *model.Context, ...) (bool, []*model.Page, error) + func FormFields(ctx *model.Context) ([]Field, *FieldMeta, error) + func ListFormFields(ctx *model.Context) ([]string, error) + func LockFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) + func RemoveFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) + func ResetFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) + func UnlockFormFields(ctx *model.Context, fieldIDsOrNames []string) (bool, error) + type CSVFieldAttributes struct + Lock bool + Values []string + type CheckBox struct + Default bool + ID string + Locked bool + Name string + Pages []int + Value bool + type ComboBox struct + Default string + Editable bool + ID string + Locked bool + Name string + Options []string + Pages []int + Value string + type DataFormat int + const CSV + const JSON + type DateField struct + Default string + Format string + ID string + Locked bool + Name string + Pages []int + Value string + type Field struct + Dv string + ID string + Locked bool + Name string + Opts string + Pages []int + Typ FieldType + V string + type FieldMeta struct + type FieldType int + const FTCheckBox + const FTComboBox + const FTDate + const FTListBox + const FTRadioButtonGroup + const FTText + type Form struct + CheckBoxes []*CheckBox + ComboBoxes []*ComboBox + DateFields []*DateField + ListBoxes []*ListBox + Pages map[string]*Page + RadioButtonGroups []*RadioButtonGroup + TextFields []*TextField + type FormGroup struct + Forms []Form + Header Header + func ExportForm(xRefTable *model.XRefTable, source string) (*FormGroup, bool, error) + type Header struct + Author string + Creation string + Creator string + ID []string + Keywords string + Producer string + Source string + Subject string + Title string + Version string + type ListBox struct + Defaults []string + ID string + Locked bool + Multi bool + Name string + Options []string + Pages []int + Values []string + type Page struct + ImageBoxes []*primitives.ImageBox + type RadioButtonGroup struct + Default string + ID string + Locked bool + Name string + Options []string + Pages []int + Value string + type TextField struct + Default string + ID string + Locked bool + Multiline bool + Name string + Pages []int + Value string