Skip to content

Commit bb789c7

Browse files
committed
Fix form validation
1 parent 32c6c24 commit bb789c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/pdfcpu/validate/form.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ func validateFormFieldDA(xRefTable *model.XRefTable, d types.Dict, dictName stri
229229
if xRefTable.ValidationMode == model.ValidationRelaxed {
230230
validate = validateDARelaxed
231231
}
232-
if (*outFieldType).Value() == "Tx" {
232+
233+
if outFieldType == nil || (*outFieldType).Value() == "Tx" {
234+
//if (*outFieldType).Value() == "Tx" {
233235
da, err := validateStringEntry(xRefTable, d, dictName, "DA", requiresDA, model.V10, validate)
234236
if err != nil {
235237
if !terminalNode && requiresDA {

0 commit comments

Comments
 (0)