|
|
@ -34,7 +34,7 @@ function load() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function xhrstate() { |
|
|
|
function xhrstate() { |
|
|
|
if (req.readyState == 4 && req.status == 200) { |
|
|
|
if (req.readyState == 4 && (req.status == 200 || req.status == 0)) { |
|
|
|
var data = req.mozResponseArrayBuffer; |
|
|
|
var data = req.mozResponseArrayBuffer; |
|
|
|
pdf = new PDFDoc(new Stream(data)); |
|
|
|
pdf = new PDFDoc(new Stream(data)); |
|
|
|
numPages = pdf.numPages; |
|
|
|
numPages = pdf.numPages; |
|
|
|