Skip to content

Commit

Permalink
Fix #332
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Jul 1, 2021
1 parent c7d720b commit c796f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdfcpu/validate/optionalContent.go
Expand Up @@ -401,7 +401,7 @@ func validateOCProperties(xRefTable *pdf.XRefTable, rootDict pdf.Dict, required
}

d, err := validateDictEntry(xRefTable, rootDict, "rootDict", "OCProperties", required, sinceVersion, nil)
if err != nil || d == nil {
if err != nil || len(d) == 0 {
return err
}

Expand Down

0 comments on commit c796f33

Please sign in to comment.