Skip to content

Commit eca8f35

Browse files
committed
Fix #73
1 parent 80aa62c commit eca8f35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/pdfcpu/validate/xObject.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,11 @@ func validateFormStreamDictPart2(xRefTable *pdf.XRefTable, d pdf.Dict, dictName
701701

702702
// OC, optional, content group dict or content membership dict, since V1.5
703703
// Specifying the optional content properties for the annotation.
704-
err = validateOptionalContent(xRefTable, d, dictName, "OC", OPTIONAL, pdf.V15)
704+
sinceVersion := pdf.V15
705+
if xRefTable.ValidationMode == pdf.ValidationRelaxed {
706+
sinceVersion = pdf.V14
707+
}
708+
err = validateOptionalContent(xRefTable, d, dictName, "OC", OPTIONAL, sinceVersion)
705709
if err != nil {
706710
return err
707711
}

0 commit comments

Comments
 (0)