Browse Source

PDF.js version 1.3.68 - See mozilla/pdf.js@91b27aae46888d12c415c24ea7bdb7ac9516b1c0

master v1.3.68
Pdf Bot 9 years ago
parent
commit
039b75aa21
  1. 2
      bower.json
  2. 16
      build/pdf.combined.js
  3. 16
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.66", "version": "1.3.68",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

16
build/pdf.combined.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.66'; PDFJS.version = '1.3.68';
PDFJS.build = '7b144c0'; PDFJS.build = '91b27aa';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -5106,16 +5106,22 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
scaledY = 0; scaledY = 0;
} }
if (font.remeasure && width > 0 && this.isFontSubpixelAAEnabled) { if (font.remeasure && width > 0) {
// some standard fonts may not have the exact width, trying to // Some standard fonts may not have the exact width: rescale per
// rescale per character // character if measured width is greater than expected glyph width
// and subpixel-aa is enabled, otherwise just center the glyph.
var measuredWidth = ctx.measureText(character).width * 1000 / var measuredWidth = ctx.measureText(character).width * 1000 /
fontSize * fontSizeScale; fontSize * fontSizeScale;
if (width < measuredWidth && this.isFontSubpixelAAEnabled) {
var characterScaleX = width / measuredWidth; var characterScaleX = width / measuredWidth;
restoreNeeded = true; restoreNeeded = true;
ctx.save(); ctx.save();
ctx.scale(characterScaleX, 1); ctx.scale(characterScaleX, 1);
scaledX /= characterScaleX; scaledX /= characterScaleX;
} else if (width !== measuredWidth) {
scaledX += (width - measuredWidth) / 2000 *
fontSize / fontSizeScale;
}
} }
if (simpleFillText && !accent) { if (simpleFillText && !accent) {

16
build/pdf.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.66'; PDFJS.version = '1.3.68';
PDFJS.build = '7b144c0'; PDFJS.build = '91b27aa';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -5165,16 +5165,22 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
scaledY = 0; scaledY = 0;
} }
if (font.remeasure && width > 0 && this.isFontSubpixelAAEnabled) { if (font.remeasure && width > 0) {
// some standard fonts may not have the exact width, trying to // Some standard fonts may not have the exact width: rescale per
// rescale per character // character if measured width is greater than expected glyph width
// and subpixel-aa is enabled, otherwise just center the glyph.
var measuredWidth = ctx.measureText(character).width * 1000 / var measuredWidth = ctx.measureText(character).width * 1000 /
fontSize * fontSizeScale; fontSize * fontSizeScale;
if (width < measuredWidth && this.isFontSubpixelAAEnabled) {
var characterScaleX = width / measuredWidth; var characterScaleX = width / measuredWidth;
restoreNeeded = true; restoreNeeded = true;
ctx.save(); ctx.save();
ctx.scale(characterScaleX, 1); ctx.scale(characterScaleX, 1);
scaledX /= characterScaleX; scaledX /= characterScaleX;
} else if (width !== measuredWidth) {
scaledX += (width - measuredWidth) / 2000 *
fontSize / fontSizeScale;
}
} }
if (simpleFillText && !accent) { if (simpleFillText && !accent) {

4
build/pdf.worker.js vendored

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.66'; PDFJS.version = '1.3.68';
PDFJS.build = '7b144c0'; PDFJS.build = '91b27aa';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.66", "version": "1.3.68",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save