Browse Source

PDF.js version 1.6.221 - See mozilla/pdf.js@f8bd3d4473c801401354f12442d8c0fda459a0b4

master v1.6.221
Pdf Bot 8 years ago
parent
commit
380d11dea9
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 12
      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.6.219", "version": "1.6.221",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

12
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.6.219'; var pdfjsVersion = '1.6.221';
var pdfjsBuild = 'e48f388'; var pdfjsBuild = 'f8bd3d4';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -20118,6 +20118,10 @@ FontLoader.prototype = {
warn('Failed to load font "' + nativeFontFace.family + '": ' + e); warn('Failed to load font "' + nativeFontFace.family + '": ' + e);
}); });
}; };
// Firefox Font Loading API does not work with mozPrintCallback --
// disabling it in this case.
var isFontLoadingAPISupported = FontLoader.isFontLoadingAPISupported &&
!FontLoader.isSyncFontLoadingSupported;
for (var i = 0, ii = fonts.length; i < ii; i++) { for (var i = 0, ii = fonts.length; i < ii; i++) {
var font = fonts[i]; var font = fonts[i];
@ -20128,7 +20132,7 @@ FontLoader.prototype = {
} }
font.attached = true; font.attached = true;
if (FontLoader.isFontLoadingAPISupported) { if (isFontLoadingAPISupported) {
var nativeFontFace = font.createNativeFontFace(); var nativeFontFace = font.createNativeFontFace();
if (nativeFontFace) { if (nativeFontFace) {
this.addNativeFontFace(nativeFontFace); this.addNativeFontFace(nativeFontFace);
@ -20145,7 +20149,7 @@ FontLoader.prototype = {
} }
var request = this.queueLoadingCallback(callback); var request = this.queueLoadingCallback(callback);
if (FontLoader.isFontLoadingAPISupported) { if (isFontLoadingAPISupported) {
Promise.all(fontLoadPromises).then(function() { Promise.all(fontLoadPromises).then(function() {
request.complete(); request.complete();
}); });

12
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.6.219'; var pdfjsVersion = '1.6.221';
var pdfjsBuild = 'e48f388'; var pdfjsBuild = 'f8bd3d4';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -2764,6 +2764,10 @@ FontLoader.prototype = {
warn('Failed to load font "' + nativeFontFace.family + '": ' + e); warn('Failed to load font "' + nativeFontFace.family + '": ' + e);
}); });
}; };
// Firefox Font Loading API does not work with mozPrintCallback --
// disabling it in this case.
var isFontLoadingAPISupported = FontLoader.isFontLoadingAPISupported &&
!FontLoader.isSyncFontLoadingSupported;
for (var i = 0, ii = fonts.length; i < ii; i++) { for (var i = 0, ii = fonts.length; i < ii; i++) {
var font = fonts[i]; var font = fonts[i];
@ -2774,7 +2778,7 @@ FontLoader.prototype = {
} }
font.attached = true; font.attached = true;
if (FontLoader.isFontLoadingAPISupported) { if (isFontLoadingAPISupported) {
var nativeFontFace = font.createNativeFontFace(); var nativeFontFace = font.createNativeFontFace();
if (nativeFontFace) { if (nativeFontFace) {
this.addNativeFontFace(nativeFontFace); this.addNativeFontFace(nativeFontFace);
@ -2791,7 +2795,7 @@ FontLoader.prototype = {
} }
var request = this.queueLoadingCallback(callback); var request = this.queueLoadingCallback(callback);
if (FontLoader.isFontLoadingAPISupported) { if (isFontLoadingAPISupported) {
Promise.all(fontLoadPromises).then(function() { Promise.all(fontLoadPromises).then(function() {
request.complete(); request.complete();
}); });

4
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.6.219'; var pdfjsVersion = '1.6.221';
var pdfjsBuild = 'e48f388'; var pdfjsBuild = 'f8bd3d4';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.6.219", "version": "1.6.221",
"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