From 9bb2b881b0bd0984b28cab66ef4fcdc084c633c3 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 8 Nov 2011 08:48:10 -0800 Subject: [PATCH] Adds cmyk jpg support. Treats the cmyk jpg as a regular stream. --- Makefile | 1 + examples/helloworld/index.html | 1 + src/core.js | 2 +- src/evaluator.js | 2 +- src/image.js | 12 ++++----- src/stream.js | 46 ++++++++++++++++++++++++++-------- test/test_slave.html | 1 + web/viewer.html | 2 +- 8 files changed, 48 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 3e385b175..2b566cbbf 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ PDF_JS_FILES = \ pattern.js \ stream.js \ worker.js \ + ../external/jpgjs/jpg.js \ $(NULL) # make server diff --git a/examples/helloworld/index.html b/examples/helloworld/index.html index a48e3705b..a2485d918 100644 --- a/examples/helloworld/index.html +++ b/examples/helloworld/index.html @@ -22,6 +22,7 @@ + + - +