fix page order when > 99 pages
This commit is contained in:
parent
eb34a4df54
commit
1cf5dd0fcc
|
@ -18,8 +18,11 @@ function getpage(page)
|
|||
{
|
||||
if (blob.size)
|
||||
{
|
||||
console.log("Downloading page " + page);
|
||||
var pagename = page < 10 ? "0" + page : page;
|
||||
var pagename = page;
|
||||
if (page < 10) pagename = "00" + pagename;
|
||||
else if (page < 100) pagename = "0" + pagename;
|
||||
|
||||
console.log("Downloading page " + pagename);
|
||||
var filename = basename + "-" + pagename + ".pdf";
|
||||
var a = document.createElement('a');
|
||||
a.href = window.URL.createObjectURL(blob);
|
||||
|
|
Loading…
Reference in New Issue