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 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.0.197",
"version": "1.0.199",
"keywords": [
"Mozilla",
"pdf",

14
build/pdf.combined.js

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

14
build/pdf.js

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

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.197';
PDFJS.build = '44cd0f4';
PDFJS.version = '1.0.199';
PDFJS.build = '149d3d8';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

2
package.json

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

Loading…
Cancel
Save