From 0f1b9949b637511dfea5048aa1079afb17b0c400 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Fri, 24 Jun 2011 02:45:58 +0200 Subject: [PATCH] Remove code to handle FlateStream differently now that we have a sane interface --- pdf.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pdf.js b/pdf.js index a7de0bb35..f61250a0c 100644 --- a/pdf.js +++ b/pdf.js @@ -2458,13 +2458,7 @@ var CanvasGraphics = (function() { var tokens = []; var token = ""; - var length = cmapObj.length; - if (cmapObj instanceof FlateStream) { - cmapObj.readBlock(); - length = cmapObj.bufferLength; - } - - var cmap = cmapObj.getBytes(length); + var cmap = cmapObj.getBytes(cmapObj.length); for (var i =0; i < cmap.length; i++) { var byte = cmap[i]; if (byte == 0x20 || byte == 0x0A || byte == 0x3C || byte == 0x3E) {