Browse Source

PDF.js version 1.0.199

master v1.0.199
Yury Delendik 11 years ago
parent
commit
66793e7c57
  1. 2
      bower.json
  2. 14
      build/pdf.combined.js
  3. 14
      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.0.197", "version": "1.0.199",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

14
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.197'; PDFJS.version = '1.0.199';
PDFJS.build = '44cd0f4'; PDFJS.build = '149d3d8';
(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
@ -4278,9 +4278,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* the raw data from the PDF. * the raw data from the PDF.
*/ */
getData: function PDFDocumentProxy_getData() { getData: function PDFDocumentProxy_getData() {
var capability = createPromiseCapability(); return this.transport.getData();
this.transport.getData(capability);
return capability.promise;
}, },
/** /**
* @return {Promise} A promise that is resolved when the document's data * @return {Promise} A promise that is resolved when the document's data
@ -4897,10 +4895,8 @@ var WorkerTransport = (function WorkerTransportClosure() {
}); });
}, },
getData: function WorkerTransport_getData(capability) { getData: function WorkerTransport_getData() {
this.messageHandler.send('GetData', null, function(data) { return this.messageHandler.sendWithPromise('GetData', null);
capability.resolve(data);
});
}, },
getPage: function WorkerTransport_getPage(pageNumber, capability) { getPage: function WorkerTransport_getPage(pageNumber, capability) {

14
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.197'; PDFJS.version = '1.0.199';
PDFJS.build = '44cd0f4'; PDFJS.build = '149d3d8';
(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
@ -4278,9 +4278,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* the raw data from the PDF. * the raw data from the PDF.
*/ */
getData: function PDFDocumentProxy_getData() { getData: function PDFDocumentProxy_getData() {
var capability = createPromiseCapability(); return this.transport.getData();
this.transport.getData(capability);
return capability.promise;
}, },
/** /**
* @return {Promise} A promise that is resolved when the document's data * @return {Promise} A promise that is resolved when the document's data
@ -4945,10 +4943,8 @@ var WorkerTransport = (function WorkerTransportClosure() {
}); });
}, },
getData: function WorkerTransport_getData(capability) { getData: function WorkerTransport_getData() {
this.messageHandler.send('GetData', null, function(data) { return this.messageHandler.sendWithPromise('GetData', null);
capability.resolve(data);
});
}, },
getPage: function WorkerTransport_getPage(pageNumber, capability) { getPage: function WorkerTransport_getPage(pageNumber, capability) {

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.197'; PDFJS.version = '1.0.199';
PDFJS.build = '44cd0f4'; PDFJS.build = '149d3d8';
(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.0.197", "version": "1.0.199",
"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