1
0
Fork 0
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:
Jonas Jenwald 2023-07-06 11:05:21 +02:00
parent 2a837ba0b5
commit 174d04fd27

View file

@ -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: