|
|
|
@ -85,10 +85,6 @@ var PDFView = {
@@ -85,10 +85,6 @@ var PDFView = {
|
|
|
|
|
this.setScale(newScale, true); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
download: function pdfViewDownload() { |
|
|
|
|
window.open(document.title, '_parent', 'pdf=yes'); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
set page(val) { |
|
|
|
|
var pages = this.pages; |
|
|
|
|
var input = document.getElementById('pageNumber'); |
|
|
|
@ -119,7 +115,7 @@ var PDFView = {
@@ -119,7 +115,7 @@ var PDFView = {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
open: function pdfViewOpen(url, scale) { |
|
|
|
|
document.title = url; |
|
|
|
|
document.title = this.url = url; |
|
|
|
|
|
|
|
|
|
getPdf( |
|
|
|
|
{ |
|
|
|
@ -135,6 +131,10 @@ var PDFView = {
@@ -135,6 +131,10 @@ var PDFView = {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
download: function pdfViewDownload() { |
|
|
|
|
window.open(this.url + '?pdfjs.action=download', '_parent'); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
navigateTo: function pdfViewNavigateTo(dest) { |
|
|
|
|
if (typeof dest === 'string') |
|
|
|
|
dest = this.destinations[dest]; |
|
|
|
|