Browse Source

PDF.js version 1.5.406 - See mozilla/pdf.js@ffa99397ad598a8a16821e7627b09a00fb298f31

master v1.5.406
Pdf Bot 9 years ago
parent
commit
e02915a8c4
  1. 2
      bower.json
  2. 18
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 18
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

18
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.404'; var pdfjsVersion = '1.5.406';
var pdfjsBuild = 'a75b020'; var pdfjsBuild = 'ffa9939';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -46547,9 +46547,17 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
switch (fn | 0) { switch (fn | 0) {
case OPS.setFont: case OPS.setFont:
// Optimization to ignore multiple identical Tf commands.
var fontNameArg = args[0].name, fontSizeArg = args[1];
if (textState.font && fontNameArg === textState.fontName &&
fontSizeArg === textState.fontSize) {
break;
}
flushTextContentItem(); flushTextContentItem();
textState.fontSize = args[1]; textState.fontName = fontNameArg;
next(handleSetFont(args[0].name, null)); textState.fontSize = fontSizeArg;
next(handleSetFont(fontNameArg, null));
return; return;
case OPS.setTextRise: case OPS.setTextRise:
flushTextContentItem(); flushTextContentItem();
@ -46766,6 +46774,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
} }
var gStateFont = gState.get('Font'); var gStateFont = gState.get('Font');
if (gStateFont) { if (gStateFont) {
textState.fontName = null;
textState.fontSize = gStateFont[1]; textState.fontSize = gStateFont[1];
next(handleSetFont(null, gStateFont[0])); next(handleSetFont(null, gStateFont[0]));
return; return;
@ -47685,6 +47694,7 @@ var StateManager = (function StateManagerClosure() {
var TextState = (function TextStateClosure() { var TextState = (function TextStateClosure() {
function TextState() { function TextState() {
this.ctm = new Float32Array(IDENTITY_MATRIX); this.ctm = new Float32Array(IDENTITY_MATRIX);
this.fontName = null;
this.fontSize = 0; this.fontSize = 0;
this.font = null; this.font = null;
this.fontMatrix = FONT_IDENTITY_MATRIX; this.fontMatrix = FONT_IDENTITY_MATRIX;

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.404'; var pdfjsVersion = '1.5.406';
var pdfjsBuild = 'a75b020'; var pdfjsBuild = 'ffa9939';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

18
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.404'; var pdfjsVersion = '1.5.406';
var pdfjsBuild = 'a75b020'; var pdfjsBuild = 'ffa9939';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -38192,9 +38192,17 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
switch (fn | 0) { switch (fn | 0) {
case OPS.setFont: case OPS.setFont:
// Optimization to ignore multiple identical Tf commands.
var fontNameArg = args[0].name, fontSizeArg = args[1];
if (textState.font && fontNameArg === textState.fontName &&
fontSizeArg === textState.fontSize) {
break;
}
flushTextContentItem(); flushTextContentItem();
textState.fontSize = args[1]; textState.fontName = fontNameArg;
next(handleSetFont(args[0].name, null)); textState.fontSize = fontSizeArg;
next(handleSetFont(fontNameArg, null));
return; return;
case OPS.setTextRise: case OPS.setTextRise:
flushTextContentItem(); flushTextContentItem();
@ -38411,6 +38419,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
} }
var gStateFont = gState.get('Font'); var gStateFont = gState.get('Font');
if (gStateFont) { if (gStateFont) {
textState.fontName = null;
textState.fontSize = gStateFont[1]; textState.fontSize = gStateFont[1];
next(handleSetFont(null, gStateFont[0])); next(handleSetFont(null, gStateFont[0]));
return; return;
@ -39330,6 +39339,7 @@ var StateManager = (function StateManagerClosure() {
var TextState = (function TextStateClosure() { var TextState = (function TextStateClosure() {
function TextState() { function TextState() {
this.ctm = new Float32Array(IDENTITY_MATRIX); this.ctm = new Float32Array(IDENTITY_MATRIX);
this.fontName = null;
this.fontSize = 0; this.fontSize = 0;
this.font = null; this.font = null;
this.fontMatrix = FONT_IDENTITY_MATRIX; this.fontMatrix = FONT_IDENTITY_MATRIX;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.5.404", "version": "1.5.406",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save