Skip to content

Commit

Permalink
Fix #73
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Mar 29, 2019
1 parent 80aa62c commit eca8f35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/pdfcpu/validate/xObject.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,11 @@ func validateFormStreamDictPart2(xRefTable *pdf.XRefTable, d pdf.Dict, dictName

// OC, optional, content group dict or content membership dict, since V1.5
// Specifying the optional content properties for the annotation.
err = validateOptionalContent(xRefTable, d, dictName, "OC", OPTIONAL, pdf.V15)
sinceVersion := pdf.V15
if xRefTable.ValidationMode == pdf.ValidationRelaxed {
sinceVersion = pdf.V14
}
err = validateOptionalContent(xRefTable, d, dictName, "OC", OPTIONAL, sinceVersion)
if err != nil {
return err
}
Expand Down

0 comments on commit eca8f35

Please sign in to comment.