1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #4470 from yurydelendik/packcmap

CMaps binary packing
This commit is contained in:
Brendan Dahl 2014-03-17 12:27:35 -07:00
commit 68be273c69
352 changed files with 1351 additions and 413591 deletions

View file

@ -4223,7 +4223,8 @@ var Font = (function FontClosure() {
var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
// d) Obtain the CMap with the name constructed in step (c) (available
// from the ASN Web site; see the Bibliography).
var ucs2CMap = CMapFactory.create(ucs2CMapName, PDFJS.cMapUrl, null);
var ucs2CMap = CMapFactory.create(ucs2CMapName,
{ url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
var cMap = properties.cMap;
var toUnicode = [];
for (var charcode in cMap.map) {