Browse Source

pdfjs参数调整

fenghaifu 4 years ago
parent
commit
1533b12bd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/pdfjs/web/viewer.js

+ 2 - 2
lib/pdfjs/web/viewer.js

@@ -26,7 +26,7 @@
 'use strict';
 
 var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf';
-var DEFAULT_SCALE_DELTA = 'page-width';//1.1;
+var DEFAULT_SCALE_DELTA = 1.1;
 var MIN_SCALE = 0.25;
 var MAX_SCALE = 10.0;
 var SCALE_SELECT_CONTAINER_PADDING = 8;
@@ -3574,7 +3574,7 @@ var PDFPageView = (function PDFPageViewClosure() {
     this.renderingId = 'page' + id;
 
     this.rotation = 0;
-    this.scale = scale || DEFAULT_SCALE;
+    this.scale = 'page-width';//scale || DEFAULT_SCALE;
     this.viewport = defaultViewport;
     this.pdfPageRotate = defaultViewport.rotation;
     this.hasRestrictedScaling = false;