Browse Source

PDF.js version 1.5.372 - See mozilla/pdf.js@ac7b6756036758baf0150c4240e64ae92bfab4c3

master v1.5.372
Pdf Bot 9 years ago
parent
commit
c070071c93
  1. 2
      bower.json
  2. 4
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 6
      web/pdf_viewer.js

2
bower.json

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

4
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.5.370'; var pdfjsVersion = '1.5.372';
var pdfjsBuild = '3a1e794'; var pdfjsBuild = 'ac7b675';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

4
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.5.370'; var pdfjsVersion = '1.5.372';
var pdfjsBuild = '3a1e794'; var pdfjsBuild = 'ac7b675';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

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.5.370'; var pdfjsVersion = '1.5.372';
var pdfjsBuild = '3a1e794'; var pdfjsBuild = 'ac7b675';
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.5.370", "version": "1.5.372",
"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": [

6
web/pdf_viewer.js

@ -3519,8 +3519,14 @@ var PDFViewer = (function pdfViewer() {
* @param {number} rotation - The rotation of the pages (0, 90, 180, 270). * @param {number} rotation - The rotation of the pages (0, 90, 180, 270).
*/ */
set pagesRotation(rotation) { set pagesRotation(rotation) {
if (!(typeof rotation === 'number' && rotation % 90 === 0)) {
throw new Error('Invalid pages rotation angle.');
}
this._pagesRotation = rotation; this._pagesRotation = rotation;
if (!this.pdfDocument) {
return;
}
for (var i = 0, l = this._pages.length; i < l; i++) { for (var i = 0, l = this._pages.length; i < l; i++) {
var pageView = this._pages[i]; var pageView = this._pages[i];
pageView.update(pageView.scale, rotation); pageView.update(pageView.scale, rotation);

Loading…
Cancel
Save