From a7667b291f5875379bcab30e95676ddb0347cacd Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 21 Oct 2014 20:47:11 +0100 Subject: [PATCH] PDF.js version 1.0.911 --- bower.json | 2 +- build/pdf.combined.js | 8 +++++--- build/pdf.js | 8 +++++--- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index cd209354c..90da510e1 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.909", + "version": "1.0.911", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 7d1a63888..5b06e5df4 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.909'; -PDFJS.build = '83eff10'; +PDFJS.version = '1.0.911'; +PDFJS.build = '92d3d7f'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4504,9 +4504,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { var textHScale = current.textHScale * fontDirection; var fontMatrix = current.fontMatrix || FONT_IDENTITY_MATRIX; var glyphsLength = glyphs.length; + var isTextInvisible = + current.textRenderingMode === TextRenderingMode.INVISIBLE; var i, glyph, width; - if (fontSize === 0) { + if (isTextInvisible || fontSize === 0) { return; } diff --git a/build/pdf.js b/build/pdf.js index 94969c733..1e656e029 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.909'; -PDFJS.build = '83eff10'; +PDFJS.version = '1.0.911'; +PDFJS.build = '92d3d7f'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4548,9 +4548,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { var textHScale = current.textHScale * fontDirection; var fontMatrix = current.fontMatrix || FONT_IDENTITY_MATRIX; var glyphsLength = glyphs.length; + var isTextInvisible = + current.textRenderingMode === TextRenderingMode.INVISIBLE; var i, glyph, width; - if (fontSize === 0) { + if (isTextInvisible || fontSize === 0) { return; } diff --git a/build/pdf.worker.js b/build/pdf.worker.js index d92e66a53..03dd25e37 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.909'; -PDFJS.build = '83eff10'; +PDFJS.version = '1.0.911'; +PDFJS.build = '92d3d7f'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 9e54c2601..8f316ff81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.909", + "version": "1.0.911", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",