Browse Source

PDF.js version 1.4.20 - See mozilla/pdf.js@b15f335380749f61bf1dc95a94278410de10864f

master v1.4.20
Pdf Bot 9 years ago
parent
commit
d26d10111f
  1. 2
      bower.json
  2. 21
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 13
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

21
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.18';
var pdfjsBuild = '1f2910b';
var pdfjsVersion = '1.4.20';
var pdfjsBuild = 'b15f335';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -29675,14 +29675,7 @@ var Catalog = (function CatalogClosure() { @@ -29675,14 +29675,7 @@ var Catalog = (function CatalogClosure() {
currentLabel = '';
currentIndex++;
}
// Ignore PageLabels if they correspond to standard page numbering.
for (i = 0, ii = this.numPages; i < ii; i++) {
if (pageLabels[i] !== (i + 1).toString()) {
break;
}
}
return (i === ii ? [] : pageLabels);
return pageLabels;
},
get attachments() {
@ -31821,11 +31814,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { @@ -31821,11 +31814,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
return this.transport.getDestination(id);
},
/**
* @return {Promise} A promise that is resolved with: an Array containing
* the pageLabels that correspond to the pageIndexes; or null, when no
* pageLabels are present in the PDF file.
* NOTE: If the pageLabels are all identical to standard page numbering,
* i.e. [1, 2, 3, ...], the promise is resolved with an empty Array.
* @return {Promise} A promise that is resolved with:
* an Array containing the pageLabels that correspond to the pageIndexes,
* or `null` when no pageLabels are present in the PDF file.
*/
getPageLabels: function PDFDocumentProxy_getPageLabels() {
return this.transport.getPageLabels();

12
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.18';
var pdfjsBuild = '1f2910b';
var pdfjsVersion = '1.4.20';
var pdfjsBuild = 'b15f335';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -8909,11 +8909,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { @@ -8909,11 +8909,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
return this.transport.getDestination(id);
},
/**
* @return {Promise} A promise that is resolved with: an Array containing
* the pageLabels that correspond to the pageIndexes; or null, when no
* pageLabels are present in the PDF file.
* NOTE: If the pageLabels are all identical to standard page numbering,
* i.e. [1, 2, 3, ...], the promise is resolved with an empty Array.
* @return {Promise} A promise that is resolved with:
* an Array containing the pageLabels that correspond to the pageIndexes,
* or `null` when no pageLabels are present in the PDF file.
*/
getPageLabels: function PDFDocumentProxy_getPageLabels() {
return this.transport.getPageLabels();

13
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.18';
var pdfjsBuild = '1f2910b';
var pdfjsVersion = '1.4.20';
var pdfjsBuild = 'b15f335';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -23866,14 +23866,7 @@ var Catalog = (function CatalogClosure() { @@ -23866,14 +23866,7 @@ var Catalog = (function CatalogClosure() {
currentLabel = '';
currentIndex++;
}
// Ignore PageLabels if they correspond to standard page numbering.
for (i = 0, ii = this.numPages; i < ii; i++) {
if (pageLabels[i] !== (i + 1).toString()) {
break;
}
}
return (i === ii ? [] : pageLabels);
return pageLabels;
},
get attachments() {

2
package.json

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

Loading…
Cancel
Save