Skip to content

Commit bca1778

Browse files
committed
Fix #1195
1 parent cca499f commit bca1778

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
@@ -730,7 +730,11 @@ func validateAnnotationDictInk(xRefTable *model.XRefTable, d types.Dict, dictNam
730730
// see 12.5.6.13
731731

732732
// InkList, required, array of stroked path arrays
733-
if _, err := validateArrayArrayEntry(xRefTable, d, dictName, "InkList", REQUIRED, model.V10, nil); err != nil {
733+
required := REQUIRED
734+
if xRefTable.ValidationMode == model.ValidationRelaxed {
735+
required = OPTIONAL
736+
}
737+
if _, err := validateArrayArrayEntry(xRefTable, d, dictName, "InkList", required, model.V10, nil); err != nil {
734738
return err
735739
}
736740

0 commit comments

Comments
 (0)