From e00babde2090a8be2b1e9e5122786f851ff1e477 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Sat, 25 Oct 2014 15:22:10 +0100 Subject: [PATCH] PDF.js version 1.0.929 --- bower.json | 2 +- build/pdf.combined.js | 12 +++++++----- build/pdf.js | 12 +++++++----- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 18 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index 8626ab989..60ab3f2de 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.927", + "version": "1.0.929", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 98abc943f..f25602822 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.927'; -PDFJS.build = 'd65db7c'; +PDFJS.version = '1.0.929'; +PDFJS.build = '1bf72f3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3067,6 +3067,8 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() { // Minimal font size that would be used during canvas fillText operations. var MIN_FONT_SIZE = 16; +// Maximum font size that would be used during canvas fillText operations. +var MAX_FONT_SIZE = 100; var MAX_GROUP_SIZE = 4096; var COMPILE_TYPE3_GLYPHS = true; @@ -4267,9 +4269,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { // Keeping the font at minimal size and using the fontSizeScale to change // the current transformation matrix before the fillText/strokeText. // See https://bugzilla.mozilla.org/show_bug.cgi?id=726227 - var browserFontSize = size >= MIN_FONT_SIZE ? size : MIN_FONT_SIZE; - this.current.fontSizeScale = browserFontSize !== MIN_FONT_SIZE ? 1.0 : - size / MIN_FONT_SIZE; + var browserFontSize = size < MIN_FONT_SIZE ? MIN_FONT_SIZE : + size > MAX_FONT_SIZE ? MAX_FONT_SIZE : size; + this.current.fontSizeScale = size / browserFontSize; var rule = italic + ' ' + bold + ' ' + browserFontSize + 'px ' + typeface; this.ctx.font = rule; diff --git a/build/pdf.js b/build/pdf.js index 0624143f0..92528641a 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.927'; -PDFJS.build = 'd65db7c'; +PDFJS.version = '1.0.929'; +PDFJS.build = '1bf72f3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3111,6 +3111,8 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() { // Minimal font size that would be used during canvas fillText operations. var MIN_FONT_SIZE = 16; +// Maximum font size that would be used during canvas fillText operations. +var MAX_FONT_SIZE = 100; var MAX_GROUP_SIZE = 4096; var COMPILE_TYPE3_GLYPHS = true; @@ -4311,9 +4313,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { // Keeping the font at minimal size and using the fontSizeScale to change // the current transformation matrix before the fillText/strokeText. // See https://bugzilla.mozilla.org/show_bug.cgi?id=726227 - var browserFontSize = size >= MIN_FONT_SIZE ? size : MIN_FONT_SIZE; - this.current.fontSizeScale = browserFontSize !== MIN_FONT_SIZE ? 1.0 : - size / MIN_FONT_SIZE; + var browserFontSize = size < MIN_FONT_SIZE ? MIN_FONT_SIZE : + size > MAX_FONT_SIZE ? MAX_FONT_SIZE : size; + this.current.fontSizeScale = size / browserFontSize; var rule = italic + ' ' + bold + ' ' + browserFontSize + 'px ' + typeface; this.ctx.font = rule; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 2d623c9bd..4b7e9989d 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.927'; -PDFJS.build = 'd65db7c'; +PDFJS.version = '1.0.929'; +PDFJS.build = '1bf72f3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 749cf98ed..805761746 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.927", + "version": "1.0.929", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",