Moves ColorSpace logic into evaluator

This commit is contained in:
Yury Delendik 2014-05-21 12:47:42 -05:00
parent d2da73b8c4
commit 542c9c4c7a
4 changed files with 121 additions and 143 deletions

View file

@ -531,11 +531,6 @@ var Util = PDFJS.Util = (function UtilClosure() {
return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
};
Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
return Util.makeCssRgb(rgb);
};
// Concatenates two transformation matrices together and returns the result.
Util.transform = function Util_transform(m1, m2) {
return [