Skip to content

Commit

Permalink
Fix #660
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Jul 27, 2023
1 parent c676831 commit bda08dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pdfcpu/validate/font.go
Expand Up @@ -666,6 +666,9 @@ func validateType0FontDict(xRefTable *model.XRefTable, d types.Dict) error {

// ToUnicode, optional, CMap stream dict
_, err = validateStreamDictEntry(xRefTable, d, dictName, "ToUnicode", OPTIONAL, model.V12, nil)
if err != nil && xRefTable.ValidationMode == model.ValidationRelaxed {
_, err = validateNameEntry(xRefTable, d, dictName, "ToUnicode", REQUIRED, model.V12, func(s string) bool { return s == "Identity-H" })
}

return err
}
Expand Down

0 comments on commit bda08dd

Please sign in to comment.