From 7d3e08eefd57df07a86910d88f04f14e95e4ce78 Mon Sep 17 00:00:00 2001 From: sbarman Date: Tue, 5 Jul 2011 11:44:26 -0500 Subject: [PATCH] bug with length of lookup table --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 5644bf036..5743876d6 100644 --- a/pdf.js +++ b/pdf.js @@ -4452,7 +4452,7 @@ var ColorSpace = (function() { break; case "Indexed": var base = ColorSpace.parse(cs[1], xref, res); - var hiVal = cs[2]; + var hiVal = cs[2] + 1; var lookup = xref.fetchIfRef(cs[3]); return new IndexedCS(base, hiVal, lookup); case "Lab":