Skip to content
Permalink
Browse files

Fix #73

  • Loading branch information...
hhrutter committed Mar 29, 2019
1 parent 80aa62c commit eca8f35ebe5f99da5862212e050824680f23016f
Showing with 5 additions and 1 deletion.
  1. +5 −1 pkg/pdfcpu/validate/xObject.go
@@ -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
}

0 comments on commit eca8f35

Please sign in to comment.
You can’t perform that action at this time.