Skip to content

Commit b9c7a89

Browse files
committed
Fix #838
1 parent c5db1d9 commit b9c7a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pdfcpu/validate/form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func validateFormFieldDictEntries(xRefTable *model.XRefTable, d types.Dict, term
319319
func validateFormFieldParts(xRefTable *model.XRefTable, d types.Dict, inFieldType *types.Name, requiresDA bool) error {
320320
// dict represents a terminal field and must have Subtype "Widget"
321321
if _, err := validateNameEntry(xRefTable, d, "formFieldDict", "Subtype", REQUIRED, model.V10, func(s string) bool { return s == "Widget" }); err != nil {
322-
return err
322+
d["Subtype"] = types.Name("Widget")
323323
}
324324

325325
// Validate field dict entries.

0 commit comments

Comments
 (0)