Reland commit 442d184 but make it works with uncompressed PDF

This commit is contained in:
Vivien Nicolas 2011-07-02 00:19:24 +02:00
parent 704559f527
commit d10cf7c929

View File

@ -624,6 +624,8 @@ var Font = (function () {
};
function replaceCMapTable(cmap, font, properties) {
font.pos = (font.start ? font.start : 0) + cmap.length;
var version = FontsUtils.bytesToInteger(font.getBytes(2));
var numTables = FontsUtils.bytesToInteger(font.getBytes(2));