Skip to content

Commit

Permalink
Fix #765
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Feb 6, 2024
1 parent 261c563 commit 055e03f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/pdfcpu/form/form.go
Expand Up @@ -44,7 +44,7 @@ const (
FTRadioButtonGroup
)

func (ft FieldType) string() string {
func (ft FieldType) String() string {
var s string
switch ft {
case FTText:
Expand Down Expand Up @@ -794,7 +794,7 @@ func renderMultiPageFields(ctx *model.Context, m map[string][]Field, fm *FieldMe
l = "*"
}

t := f.Typ.string()
t := f.Typ.String()

pageFill := strings.Repeat(" ", fm.pageMax-runewidth.StringWidth(f.pageString()))
idFill := strings.Repeat(" ", fm.idMax-runewidth.StringWidth(f.ID))
Expand Down Expand Up @@ -867,7 +867,7 @@ func renderFields(ctx *model.Context, fs []Field, fm *FieldMeta) ([]string, erro
l = "*"
}

t := f.Typ.string()
t := f.Typ.String()

pageFill := strings.Repeat(" ", fm.pageMax-runewidth.StringWidth(f.pageString()))
idFill := strings.Repeat(" ", fm.idMax-runewidth.StringWidth(f.ID))
Expand Down

0 comments on commit 055e03f

Please sign in to comment.