Skip to content

Commit

Permalink
Fix #388
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Nov 30, 2021
1 parent 6509cea commit af9e334
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/pdfcpu/validate/xReftable.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ func validateMarkInfo(xRefTable *pdf.XRefTable, rootDict pdf.Dict, required bool
}

// Suspects: optional, since V1.6, boolean
suspects, err := validateBooleanEntry(xRefTable, d, dictName, "Suspects", OPTIONAL, pdf.V16, nil)
sinceVersion = pdf.V16
if xRefTable.ValidationMode == pdf.ValidationRelaxed {
sinceVersion = pdf.V15
}
suspects, err := validateBooleanEntry(xRefTable, d, dictName, "Suspects", OPTIONAL, sinceVersion, nil)
if err != nil {
return err
}
Expand Down

0 comments on commit af9e334

Please sign in to comment.