Skip to content

Commit bda08dd

Browse files
committed
Fix #660
1 parent c676831 commit bda08dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/pdfcpu/validate/font.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ func validateType0FontDict(xRefTable *model.XRefTable, d types.Dict) error {
666666

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

670673
return err
671674
}

0 commit comments

Comments
 (0)