Skip to content

Commit

Permalink
Fix #708
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Sep 12, 2023
1 parent c5e4405 commit 04840dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/pdfcpu/validate/extGState.go
Expand Up @@ -950,7 +950,11 @@ func validateExtGStateDictPart3(xRefTable *model.XRefTable, d types.Dict, dictNa
}

// TK, boolean, optional, since V1.4, text knockout flag.
_, err = validateBooleanEntry(xRefTable, d, dictName, "TK", OPTIONAL, model.V14, nil)
sinceVersion = model.V14
if xRefTable.ValidationMode == model.ValidationRelaxed {
sinceVersion = model.V13
}
_, err = validateBooleanEntry(xRefTable, d, dictName, "TK", OPTIONAL, sinceVersion, nil)

return err
}
Expand Down

0 comments on commit 04840dd

Please sign in to comment.