This commit is contained in:
Zhuk Viatcheslav
2020-04-29 14:41:23 +03:00
parent cb02e1df33
commit 5c31d34edd
4 changed files with 20 additions and 6 deletions

View File

@@ -40,4 +40,7 @@ loadingTask.promise.then(function(pdf) {
}, function (reason) {
// PDF loading error
console.error(reason);
});
});

View File

@@ -75,6 +75,17 @@ function pdfzoomout(){
}
var cnt = 100;
function resize_plus(){
var div = document.getElementById("the-canvas");
cnt += 2;
div.style.width = cnt+"%";
}
function resize_minus(){
var div = document.getElementById("the-canvas");
cnt -= 2;
div.style.width = cnt+"%";
}
function getzoom(){
var name = 'pdfscale';