Skip to content

Commit b60bc1c

Browse files
committed
Fix #1076
1 parent 4ba7f28 commit b60bc1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/pdfcpu/validate/structTree.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,11 @@ func validateStructElementDictPart2(xRefTable *model.XRefTable, d types.Dict, di
461461
}
462462

463463
// ActualText: optional, text string, since 1.4
464-
_, err = validateStringEntry(xRefTable, d, dictName, "ActualText", OPTIONAL, model.V14, nil)
464+
sinceVersion = model.V14
465+
if xRefTable.ValidationMode == model.ValidationRelaxed {
466+
sinceVersion = model.V13
467+
}
468+
_, err = validateStringEntry(xRefTable, d, dictName, "ActualText", OPTIONAL, sinceVersion, nil)
465469

466470
return err
467471
}

0 commit comments

Comments
 (0)