From 24aaa655a77797106f940d848f9e77d352763f6c Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:33:53 -0500 Subject: [PATCH] PDF.js version 1.0.706 --- bower.json | 2 +- build/pdf.combined.js | 8 ++++---- build/pdf.js | 8 ++++---- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index c8ca306ab..c575d8bce 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.704", + "version": "1.0.706", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 96f9e1985..a3f6acdcc 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.704'; -PDFJS.build = '4ef7058'; +PDFJS.version = '1.0.706'; +PDFJS.build = 'f543e86'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4449,7 +4449,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.transform.apply(ctx, current.textMatrix); ctx.translate(current.x, current.y); - ctx.scale(textHScale, 1); + ctx.scale(textHScale, fontDirection); for (i = 0; i < glyphsLength; ++i) { glyph = glyphs[i]; @@ -4479,7 +4479,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { this.restore(); var transformed = Util.applyTransform([glyph.width, 0], fontMatrix); - width = ((transformed[0] * fontSize + charSpacing) * fontDirection); + width = transformed[0] * fontSize + charSpacing; ctx.translate(width, 0); current.x += width * textHScale; diff --git a/build/pdf.js b/build/pdf.js index 68807543a..0b856222e 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.704'; -PDFJS.build = '4ef7058'; +PDFJS.version = '1.0.706'; +PDFJS.build = 'f543e86'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4493,7 +4493,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.transform.apply(ctx, current.textMatrix); ctx.translate(current.x, current.y); - ctx.scale(textHScale, 1); + ctx.scale(textHScale, fontDirection); for (i = 0; i < glyphsLength; ++i) { glyph = glyphs[i]; @@ -4523,7 +4523,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { this.restore(); var transformed = Util.applyTransform([glyph.width, 0], fontMatrix); - width = ((transformed[0] * fontSize + charSpacing) * fontDirection); + width = transformed[0] * fontSize + charSpacing; ctx.translate(width, 0); current.x += width * textHScale; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 7ff6befc0..d7577ce9a 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.704'; -PDFJS.build = '4ef7058'; +PDFJS.version = '1.0.706'; +PDFJS.build = 'f543e86'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 536dd5397..4697895b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.704", + "version": "1.0.706", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",