From e030498f53dceabf13345e1f86509060bcd65202 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 22 Jul 2016 22:36:51 +0100 Subject: [PATCH] PDF.js version 1.5.347 - See mozilla/pdf.js@50d6e4f1475a4cb62978a64a398828dc96f075f0 --- bower.json | 2 +- build/pdf.combined.js | 16 +++++++++++----- build/pdf.js | 4 ++-- build/pdf.worker.js | 16 +++++++++++----- package.json | 2 +- 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index 88ec84ff1..1b99886d5 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.345", + "version": "1.5.347", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 66bc2cb10..834cf9768 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.5.345'; -var pdfjsBuild = '10f9f11'; +var pdfjsVersion = '1.5.347'; +var pdfjsBuild = '50d6e4f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -46863,7 +46863,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // the differences array only contains adobe standard or symbol set names, // in pratice it seems better to always try to create a toUnicode // map based of the default encoding. - var toUnicode, charcode; + var toUnicode, charcode, glyphName; if (!properties.composite /* is simple font */) { toUnicode = []; var encoding = properties.defaultEncoding.slice(); @@ -46871,12 +46871,18 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // Merge in the differences array. var differences = properties.differences; for (charcode in differences) { - encoding[charcode] = differences[charcode]; + glyphName = differences[charcode]; + if (glyphName === '.notdef') { + // Skip .notdef to prevent rendering errors, e.g. boxes appearing + // where there should be spaces (fixes issue5256.pdf). + continue; + } + encoding[charcode] = glyphName; } var glyphsUnicodeMap = getGlyphsUnicode(); for (charcode in encoding) { // a) Map the character code to a character name. - var glyphName = encoding[charcode]; + glyphName = encoding[charcode]; // b) Look up the character name in the Adobe Glyph List (see the // Bibliography) to obtain the corresponding Unicode value. if (glyphName === '') { diff --git a/build/pdf.js b/build/pdf.js index 9fcf89690..d502a6809 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.5.345'; -var pdfjsBuild = '10f9f11'; +var pdfjsVersion = '1.5.347'; +var pdfjsBuild = '50d6e4f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index fb9754377..4b1787fab 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.5.345'; -var pdfjsBuild = '10f9f11'; +var pdfjsVersion = '1.5.347'; +var pdfjsBuild = '50d6e4f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -38517,7 +38517,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // the differences array only contains adobe standard or symbol set names, // in pratice it seems better to always try to create a toUnicode // map based of the default encoding. - var toUnicode, charcode; + var toUnicode, charcode, glyphName; if (!properties.composite /* is simple font */) { toUnicode = []; var encoding = properties.defaultEncoding.slice(); @@ -38525,12 +38525,18 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // Merge in the differences array. var differences = properties.differences; for (charcode in differences) { - encoding[charcode] = differences[charcode]; + glyphName = differences[charcode]; + if (glyphName === '.notdef') { + // Skip .notdef to prevent rendering errors, e.g. boxes appearing + // where there should be spaces (fixes issue5256.pdf). + continue; + } + encoding[charcode] = glyphName; } var glyphsUnicodeMap = getGlyphsUnicode(); for (charcode in encoding) { // a) Map the character code to a character name. - var glyphName = encoding[charcode]; + glyphName = encoding[charcode]; // b) Look up the character name in the Adobe Glyph List (see the // Bibliography) to obtain the corresponding Unicode value. if (glyphName === '') { diff --git a/package.json b/package.json index f1244b247..6675b886a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.345", + "version": "1.5.347", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [