Skip to content

Commit 4527ff4

Browse files
committed
Fix #806
1 parent 18b8e77 commit 4527ff4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/pdfcpu/validate/annotation.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,11 @@ func validateAnnotationDictFreeTextPart1(xRefTable *model.XRefTable, d types.Dic
410410
}
411411

412412
// DS, optional, text string, since V1.5
413-
_, err = validateStringEntry(xRefTable, d, dictName, "DS", OPTIONAL, model.V15, nil)
413+
sinceVersion = model.V15
414+
if xRefTable.ValidationMode == model.ValidationRelaxed {
415+
sinceVersion = model.V14
416+
}
417+
_, err = validateStringEntry(xRefTable, d, dictName, "DS", OPTIONAL, sinceVersion, nil)
414418
if err != nil {
415419
return err
416420
}

0 commit comments

Comments
 (0)