Skip to content

Commit

Permalink
Extend relaxed validation for CIDToGIDMap
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Oct 13, 2021
1 parent 0c4c829 commit 92bfd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdfcpu/validate/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func validateCIDFontDictEntryCIDToGIDMap(xRefTable *pdf.XRefTable, d pdf.Dict, i

if o, found := d.Find("CIDToGIDMap"); found {

if !isCIDFontType2 {
if xRefTable.ValidationMode == pdf.ValidationStrict && !isCIDFontType2 {
return errors.New("pdfcpu: validateCIDFontDict: entry CIDToGIDMap not allowed - must be CIDFontType2")
}

Expand Down

0 comments on commit 92bfd3e

Please sign in to comment.