Remove code to handle FlateStream differently now that we have a sane interface

This commit is contained in:
Vivien Nicolas 2011-06-24 02:45:58 +02:00
parent 71da81b9de
commit 0f1b9949b6

8
pdf.js
View File

@ -2458,13 +2458,7 @@ var CanvasGraphics = (function() {
var tokens = []; var tokens = [];
var token = ""; var token = "";
var length = cmapObj.length; var cmap = cmapObj.getBytes(cmapObj.length);
if (cmapObj instanceof FlateStream) {
cmapObj.readBlock();
length = cmapObj.bufferLength;
}
var cmap = cmapObj.getBytes(length);
for (var i =0; i < cmap.length; i++) { for (var i =0; i < cmap.length; i++) {
var byte = cmap[i]; var byte = cmap[i];
if (byte == 0x20 || byte == 0x0A || byte == 0x3C || byte == 0x3E) { if (byte == 0x20 || byte == 0x0A || byte == 0x3C || byte == 0x3E) {