1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge upstream and change to error parameter for callback.

This commit is contained in:
Brendan Dahl 2011-12-02 10:19:43 -08:00
commit e0c231eec7
16 changed files with 500 additions and 182 deletions

View file

@ -162,11 +162,11 @@ function nextPage(task, loadError) {
page.startRendering(
ctx,
function nextPageStartRendering() {
snapshotCurrentPage(task, false);
},
function errorNextPageStartRendering(e) {
snapshotCurrentPage(task, 'render : ' + e.message);
function nextPageStartRendering(error) {
var failureMessage = false;
if (error)
failureMessage = 'render : ' + error.message;
snapshotCurrentPage(task, failureMessage);
}
);
} catch (e) {

View file

@ -16,3 +16,4 @@
!alphatrans.pdf
!devicen.pdf
!cmykjpeg.pdf
!issue840.pdf

BIN
test/pdfs/issue840.pdf Normal file

Binary file not shown.

View file

@ -0,0 +1 @@
http://www.erowid.org/archive/rhodium/chemistry/3base/piperonal.pepper/piperine.pepper/465e03piperine.pdf

View file

@ -0,0 +1 @@
http://leahy.senate.gov/imo/media/doc/BillText-PROTECTIPAct.pdf

View file

@ -276,5 +276,25 @@
"link": false,
"rounds": 1,
"type": "eq"
},
{ "id": "protectip",
"file": "pdfs/protectip.pdf",
"md5": "676e7a7b8f96d04825361832b1838a93",
"link": true,
"rounds": 1,
"type": "eq"
},
{ "id": "piperine",
"file": "pdfs/piperine.pdf",
"md5": "603ca43dc5732dbba1579f122958c0c2",
"link": true,
"rounds": 1,
"type": "eq"
},
{ "id": "issue840",
"file": "pdfs/issue840.pdf",
"md5": "20d88011dd7e3c4fb5274979094dab93",
"rounds": 1,
"type": "eq"
}
]