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:
commit
e0c231eec7
16 changed files with 500 additions and 182 deletions
|
@ -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) {
|
||||
|
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -16,3 +16,4 @@
|
|||
!alphatrans.pdf
|
||||
!devicen.pdf
|
||||
!cmykjpeg.pdf
|
||||
!issue840.pdf
|
||||
|
|
BIN
test/pdfs/issue840.pdf
Normal file
BIN
test/pdfs/issue840.pdf
Normal file
Binary file not shown.
1
test/pdfs/piperine.pdf.link
Normal file
1
test/pdfs/piperine.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
http://www.erowid.org/archive/rhodium/chemistry/3base/piperonal.pepper/piperine.pepper/465e03piperine.pdf
|
1
test/pdfs/protectip.pdf.link
Normal file
1
test/pdfs/protectip.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
http://leahy.senate.gov/imo/media/doc/BillText-PROTECTIPAct.pdf
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue