mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Reland commit 442d184
but make it works with uncompressed PDF
This commit is contained in:
parent
704559f527
commit
d10cf7c929
1 changed files with 2 additions and 0 deletions
2
fonts.js
2
fonts.js
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue