|
|
@ -120,7 +120,6 @@ var PDFViewerApplication = { |
|
|
|
secondaryToolbar: null, |
|
|
|
secondaryToolbar: null, |
|
|
|
eventBus: null, |
|
|
|
eventBus: null, |
|
|
|
l10n: null, |
|
|
|
l10n: null, |
|
|
|
pageRotation: 0, |
|
|
|
|
|
|
|
isInitialViewSet: false, |
|
|
|
isInitialViewSet: false, |
|
|
|
downloadComplete: false, |
|
|
|
downloadComplete: false, |
|
|
|
viewerPrefs: { |
|
|
|
viewerPrefs: { |
|
|
@ -360,6 +359,9 @@ var PDFViewerApplication = { |
|
|
|
get pagesCount() { |
|
|
|
get pagesCount() { |
|
|
|
return this.pdfDocument ? this.pdfDocument.numPages : 0; |
|
|
|
return this.pdfDocument ? this.pdfDocument.numPages : 0; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
get pageRotation() { |
|
|
|
|
|
|
|
return this.pdfViewer.pagesRotation; |
|
|
|
|
|
|
|
}, |
|
|
|
set page(val) { |
|
|
|
set page(val) { |
|
|
|
this.pdfViewer.currentPageNumber = val; |
|
|
|
this.pdfViewer.currentPageNumber = val; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -438,7 +440,6 @@ var PDFViewerApplication = { |
|
|
|
this.pdfDocumentProperties.setDocument(null, null); |
|
|
|
this.pdfDocumentProperties.setDocument(null, null); |
|
|
|
} |
|
|
|
} |
|
|
|
this.store = null; |
|
|
|
this.store = null; |
|
|
|
this.pageRotation = 0; |
|
|
|
|
|
|
|
this.isInitialViewSet = false; |
|
|
|
this.isInitialViewSet = false; |
|
|
|
this.downloadComplete = false; |
|
|
|
this.downloadComplete = false; |
|
|
|
this.pdfSidebar.reset(); |
|
|
|
this.pdfSidebar.reset(); |
|
|
@ -873,12 +874,15 @@ var PDFViewerApplication = { |
|
|
|
if (!this.pdfDocument) { |
|
|
|
if (!this.pdfDocument) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var pageNumber = this.page; |
|
|
|
var pdfViewer = this.pdfViewer, |
|
|
|
this.pageRotation = (this.pageRotation + 360 + delta) % 360; |
|
|
|
pdfThumbnailViewer = this.pdfThumbnailViewer; |
|
|
|
this.pdfViewer.pagesRotation = this.pageRotation; |
|
|
|
|
|
|
|
this.pdfThumbnailViewer.pagesRotation = this.pageRotation; |
|
|
|
var pageNumber = pdfViewer.currentPageNumber; |
|
|
|
|
|
|
|
var newRotation = (pdfViewer.pagesRotation + 360 + delta) % 360; |
|
|
|
|
|
|
|
pdfViewer.pagesRotation = newRotation; |
|
|
|
|
|
|
|
pdfThumbnailViewer.pagesRotation = newRotation; |
|
|
|
this.forceRendering(); |
|
|
|
this.forceRendering(); |
|
|
|
this.pdfViewer.currentPageNumber = pageNumber; |
|
|
|
pdfViewer.currentPageNumber = pageNumber; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
requestPresentationMode: function pdfViewRequestPresentationMode() { |
|
|
|
requestPresentationMode: function pdfViewRequestPresentationMode() { |
|
|
|