From cb141a986f5a7e2ce842e830dfc08db3aeeb859c Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Mon, 18 Jan 2016 19:31:36 +0000 Subject: [PATCH] PDF.js version 1.3.220 - See mozilla/pdf.js@ec066101d821e7e36834f29a0250a1eace773aae --- bower.json | 2 +- build/pdf.combined.js | 16 ++++++++++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 16 ++++++++++++---- package.json | 2 +- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index cfa165778..a6e305b01 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.218", + "version": "1.3.220", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 120dc7e93..070e4563b 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.3.218'; -var pdfjsBuild = 'e60fde7'; +var pdfjsVersion = '1.3.220'; +var pdfjsBuild = 'ec06610'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -37131,8 +37131,16 @@ var Font = (function FontClosure() { delete tables['cvt ']; this.isOpenType = true; } else { - if (!tables.glyf || !tables.loca) { - error('Required "glyf" or "loca" tables are not found'); + if (!tables.loca) { + error('Required "loca" table is not found'); + } + if (!tables.glyf) { + warn('Required "glyf" table is not found -- trying to recover.'); + // Note: We use `sanitizeGlyphLocations` to add dummy glyf data below. + tables.glyf = { + tag: 'glyf', + data: new Uint8Array(0), + }; } this.isOpenType = false; } diff --git a/build/pdf.js b/build/pdf.js index 5fb291785..07f53aa09 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.3.218'; -var pdfjsBuild = 'e60fde7'; +var pdfjsVersion = '1.3.220'; +var pdfjsBuild = 'ec06610'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index fa42e132a..9248ef2a2 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.3.218'; -var pdfjsBuild = 'e60fde7'; +var pdfjsVersion = '1.3.220'; +var pdfjsBuild = 'ec06610'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -29300,8 +29300,16 @@ var Font = (function FontClosure() { delete tables['cvt ']; this.isOpenType = true; } else { - if (!tables.glyf || !tables.loca) { - error('Required "glyf" or "loca" tables are not found'); + if (!tables.loca) { + error('Required "loca" table is not found'); + } + if (!tables.glyf) { + warn('Required "glyf" table is not found -- trying to recover.'); + // Note: We use `sanitizeGlyphLocations` to add dummy glyf data below. + tables.glyf = { + tag: 'glyf', + data: new Uint8Array(0), + }; } this.isOpenType = false; } diff --git a/package.json b/package.json index 377c9e3d5..2b0629066 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.218", + "version": "1.3.220", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [