Browse Source

PDF.js version 1.3.122 - See mozilla/pdf.js@05b9d3730a001d9ba440509e2cec5d8c7e2fada0

master v1.3.122
Pdf Bot 9 years ago
parent
commit
a7cd5f77b0
  1. 2
      bower.json
  2. 17
      build/pdf.combined.js
  3. 41
      build/pdf.js
  4. 14
      build/pdf.worker.js
  5. 3
      package.json

2
bower.json

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

17
build/pdf.combined.js

@ -12,16 +12,17 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/*jshint globalstrict: false */ /* jshint globalstrict: false */
/* globals PDFJS */ /* globals PDFJS, global */
// Initializing PDFJS global object (if still undefined) // Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') { if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window :
typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.120'; PDFJS.version = '1.3.122';
PDFJS.build = 'eb557d2'; PDFJS.build = '05b9d37';
(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
@ -6155,6 +6156,7 @@ var globalScope = sharedGlobal.globalScope;
var DEFAULT_RANGE_CHUNK_SIZE = 65536; // 2^16 = 65536 var DEFAULT_RANGE_CHUNK_SIZE = 65536; // 2^16 = 65536
/** /**
* The maximum allowed image size in total pixels e.g. width * height. Images * The maximum allowed image size in total pixels e.g. width * height. Images
* above this value will not be drawn. Use -1 for no limit. * above this value will not be drawn. Use -1 for no limit.
@ -7314,8 +7316,10 @@ var PDFWorker = (function PDFWorkerClosure() {
}, },
_setupFakeWorker: function PDFWorker_setupFakeWorker() { _setupFakeWorker: function PDFWorker_setupFakeWorker() {
if (!globalScope.PDFJS.disableWorker) {
warn('Setting up fake worker.'); warn('Setting up fake worker.');
globalScope.PDFJS.disableWorker = true; globalScope.PDFJS.disableWorker = true;
}
setupFakeWorkerGlobal().then(function () { setupFakeWorkerGlobal().then(function () {
if (this.destroyed) { if (this.destroyed) {
@ -48509,7 +48513,8 @@ var workerConsole = {
// Worker thread? // Worker thread?
if (typeof window === 'undefined' && typeof require === 'undefined') { if (typeof window === 'undefined' &&
!(typeof module !== 'undefined' && module.require)) {
if (!('console' in globalScope)) { if (!('console' in globalScope)) {
globalScope.console = workerConsole; globalScope.console = workerConsole;
} }

41
build/pdf.js

@ -12,16 +12,17 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/*jshint globalstrict: false */ /* jshint globalstrict: false */
/* globals PDFJS */ /* globals PDFJS, global */
// Initializing PDFJS global object (if still undefined) // Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') { if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window :
typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.120'; PDFJS.version = '1.3.122';
PDFJS.build = 'eb557d2'; PDFJS.build = '05b9d37';
(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
@ -6156,6 +6157,29 @@ var globalScope = sharedGlobal.globalScope;
var DEFAULT_RANGE_CHUNK_SIZE = 65536; // 2^16 = 65536 var DEFAULT_RANGE_CHUNK_SIZE = 65536; // 2^16 = 65536
var useRequireEnsure = false;
if (typeof module !== 'undefined' && module.require) {
// node.js - disable worker and set require.ensure.
PDFJS.disableWorker = true;
if (typeof require.ensure === 'undefined') {
require.ensure = require('node-ensure');
}
useRequireEnsure = true;
}
if (typeof __webpack_require__ !== 'undefined') {
// Webpack - get/bundle pdf.worker.js as additional file.
PDFJS.workerSrc = require('entry?name=[hash]-worker.js!./pdf.worker.js');
useRequireEnsure = true;
}
var fakeWorkerFilesLoader = useRequireEnsure && function (callback) {
require.ensure([], function () {
require('./pdf.worker.js');
callback();
});
};
/** /**
* The maximum allowed image size in total pixels e.g. width * height. Images * The maximum allowed image size in total pixels e.g. width * height. Images
* above this value will not be drawn. Use -1 for no limit. * above this value will not be drawn. Use -1 for no limit.
@ -7274,7 +7298,10 @@ var PDFWorker = (function PDFWorkerClosure() {
// In the developer build load worker_loader which in turn loads all the // In the developer build load worker_loader which in turn loads all the
// other files and resolves the promise. In production only the // other files and resolves the promise. In production only the
// pdf.worker.js file is needed. // pdf.worker.js file is needed.
Util.loadScript(PDFJS.workerSrc, function() { var loader = fakeWorkerFilesLoader || function (callback) {
Util.loadScript(PDFJS.workerSrc, callback);
};
loader(function () {
PDFJS.fakeWorkerFilesLoadedCapability.resolve(); PDFJS.fakeWorkerFilesLoadedCapability.resolve();
}); });
} }
@ -7374,8 +7401,10 @@ var PDFWorker = (function PDFWorkerClosure() {
}, },
_setupFakeWorker: function PDFWorker_setupFakeWorker() { _setupFakeWorker: function PDFWorker_setupFakeWorker() {
if (!globalScope.PDFJS.disableWorker) {
warn('Setting up fake worker.'); warn('Setting up fake worker.');
globalScope.PDFJS.disableWorker = true; globalScope.PDFJS.disableWorker = true;
}
setupFakeWorkerGlobal().then(function () { setupFakeWorkerGlobal().then(function () {
if (this.destroyed) { if (this.destroyed) {

14
build/pdf.worker.js vendored

@ -12,16 +12,17 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/*jshint globalstrict: false */ /* jshint globalstrict: false */
/* globals PDFJS */ /* globals PDFJS, global */
// Initializing PDFJS global object (if still undefined) // Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') { if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window :
typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.120'; PDFJS.version = '1.3.122';
PDFJS.build = 'eb557d2'; PDFJS.build = '05b9d37';
(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
@ -40929,7 +40930,8 @@ var workerConsole = {
// Worker thread? // Worker thread?
if (typeof window === 'undefined' && typeof require === 'undefined') { if (typeof window === 'undefined' &&
!(typeof module !== 'undefined' && module.require)) {
if (!('console' in globalScope)) { if (!('console' in globalScope)) {
globalScope.console = workerConsole; globalScope.console = workerConsole;
} }

3
package.json

@ -1,6 +1,7 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.120", "version": "1.3.122",
"main": "build/pdf.js",
"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