mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix typos when handling CMYK colors in src/core/default_appearance.js
Note how we're accidentally using the wrong operator when trying to parse CMYK colors. I'm not aware of any bugs caused by this, since it seems uncommon in practice for annotations to specify text-colors in CMYK format.
This commit is contained in:
parent
2a837ba0b5
commit
174d04fd27
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class DefaultAppearanceEvaluator extends EvaluatorPreprocessor {
|
|||
case OPS.setFillGray:
|
||||
ColorSpace.singletons.gray.getRgbItem(args, 0, result.fontColor, 0);
|
||||
break;
|
||||
case OPS.setFillColorSpace:
|
||||
case OPS.setFillCMYKColor:
|
||||
ColorSpace.singletons.cmyk.getRgbItem(args, 0, result.fontColor, 0);
|
||||
break;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ class AppearanceStreamEvaluator extends EvaluatorPreprocessor {
|
|||
case OPS.setFillGray:
|
||||
ColorSpace.singletons.gray.getRgbItem(args, 0, result.fontColor, 0);
|
||||
break;
|
||||
case OPS.setFillColorSpace:
|
||||
case OPS.setFillCMYKColor:
|
||||
ColorSpace.singletons.cmyk.getRgbItem(args, 0, result.fontColor, 0);
|
||||
break;
|
||||
case OPS.showText:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue