Browse Source

PDF.js version 1.1.132

master v1.1.132
Pdf Bot 10 years ago
parent
commit
2f83a9b451
  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. 13
      web/pdf_viewer.js

2
bower.json

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

4
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.130'; PDFJS.version = '1.1.132';
PDFJS.build = '67816bd'; PDFJS.build = '39d5031';
(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

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.130'; PDFJS.version = '1.1.132';
PDFJS.build = '67816bd'; PDFJS.build = '39d5031';
(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

4
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.130'; PDFJS.version = '1.1.132';
PDFJS.build = '67816bd'; PDFJS.build = '39d5031';
(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.1.130", "version": "1.1.132",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

13
web/pdf_viewer.js

@ -1949,7 +1949,7 @@ var PDFViewer = (function pdfViewer() {
this._currentScale = UNKNOWN_SCALE; this._currentScale = UNKNOWN_SCALE;
this._currentScaleValue = null; this._currentScaleValue = null;
this._buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE); this._buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE);
this.location = null; this._location = null;
this._pagesRotation = 0; this._pagesRotation = 0;
this._pagesRequests = []; this._pagesRequests = [];
@ -1997,11 +1997,11 @@ var PDFViewer = (function pdfViewer() {
if (!noScroll) { if (!noScroll) {
var page = this._currentPageNumber, dest; var page = this._currentPageNumber, dest;
if (this.location && !IGNORE_CURRENT_POSITION_ON_ZOOM && if (this._location && !IGNORE_CURRENT_POSITION_ON_ZOOM &&
!(this.isInPresentationMode || this.isChangingPresentationMode)) { !(this.isInPresentationMode || this.isChangingPresentationMode)) {
page = this.location.pageNumber; page = this._location.pageNumber;
dest = [null, { name: 'XYZ' }, this.location.left, dest = [null, { name: 'XYZ' }, this._location.left,
this.location.top, null]; this._location.top, null];
} }
this.scrollPageIntoView(page, dest); this.scrollPageIntoView(page, dest);
} }
@ -2180,7 +2180,7 @@ var PDFViewer = (function pdfViewer() {
var intTop = Math.round(topLeft[1]); var intTop = Math.round(topLeft[1]);
pdfOpenParams += ',' + intLeft + ',' + intTop; pdfOpenParams += ',' + intLeft + ',' + intTop;
this.location = { this._location = {
pageNumber: pageNumber, pageNumber: pageNumber,
scale: normalizedScaleValue, scale: normalizedScaleValue,
top: intTop, top: intTop,
@ -2234,6 +2234,7 @@ var PDFViewer = (function pdfViewer() {
var event = document.createEvent('UIEvents'); var event = document.createEvent('UIEvents');
event.initUIEvent('updateviewarea', true, true, window, 0); event.initUIEvent('updateviewarea', true, true, window, 0);
event.location = this._location;
this.container.dispatchEvent(event); this.container.dispatchEvent(event);
}, },

Loading…
Cancel
Save