1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00

Get rid of the TrueType class, adapt the code to conventions and new code

This commit is contained in:
Vivien Nicolas 2011-06-21 06:49:59 +02:00
parent 083256634c
commit ff6aaa02ee
2 changed files with 647 additions and 869 deletions

3
pdf.js
View file

@ -80,6 +80,7 @@ var Stream = (function() {
getBytes: function(length) {
var bytes = this.bytes;
var pos = this.pos;
var end = pos + length;
var strEnd = this.end;
if (!end || end > strEnd)
@ -2198,7 +2199,7 @@ var CanvasGraphics = (function() {
var tokens = [];
var token = "";
var buffer = cmapObj.ensureBuffer();
var buffer = cmapObj.ensureBuffer ? cmapObj.ensureBuffer() : cmapObj;
var cmap = cmapObj.getBytes(buffer.byteLength);
for (var i =0; i < cmap.length; i++) {
var byte = cmap[i];