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

Initial merge of master.

This commit is contained in:
= 2011-10-19 11:14:13 -07:00
parent c9508100ff
commit 65ea07a3a2
13 changed files with 419 additions and 348 deletions

View file

@ -71,7 +71,8 @@ function nextTask() {
cleanup();
if (currentTaskIdx == manifest.length) {
return done();
done();
return;
}
var task = manifest[currentTaskIdx];
task.round = 0;
@ -91,7 +92,11 @@ function nextTask() {
}
function isLastPage(task) {
return task.pageNum > task.pdfDoc.numPages || task.pageNum > task.pageLimit;
var limit = task.pageLimit || 0;
if (!limit || limit > task.pdfDoc.numPages)
limit = task.pdfDoc.numPages;
return task.pageNum > limit;
}
function canvasToDataURL() {

View file

@ -36,8 +36,9 @@ endobj
/Length 8 0 R
>>
stream
/F0 12 Tf
/F1 12 Tf
/GS1 gs
/F0 12 Tf
BT
100 700 Td
(I should be courier!) Tj
@ -56,10 +57,11 @@ endobj
7 0 obj
<<
/F0 10 0 R
/F1 11 0 R
>>
endobj
8 0 obj
82
93
endobj
9 0 obj
<<
@ -81,25 +83,34 @@ endobj
/Encoding /WinAnsiEncoding
>>
endobj
11 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Times-Italic
/Encoding /WinAnsiEncoding
>>
endobj
xref
0 11
0 12
0000000000 65535 f
0000000015 00000 n
0000000078 00000 n
0000000135 00000 n
0000000239 00000 n
0000000304 00000 n
0000000441 00000 n
0000000473 00000 n
0000000505 00000 n
0000000523 00000 n
0000000653 00000 n
0000000452 00000 n
0000000484 00000 n
0000000527 00000 n
0000000545 00000 n
0000000675 00000 n
0000000771 00000 n
trailer
<<
/Root 1 0 R
/ID [<BFFF29B7D1C75EC69AC080682C2AFC5B> <BFFF29B7D1C75EC69AC080682C2AFC5B>]
/Size 11
/ID [<FCE2529ACCE848A953BDB5D497D71C36> <FCE2529ACCE848A953BDB5D497D71C36>]
/Size 12
>>
startxref
749
872
%%EOF

View file

@ -100,7 +100,7 @@
{ "id": "rotation",
"file": "pdfs/rotation.pdf",
"rounds": 1,
"type": "load"
"type": "eq"
},
{ "id": "ecma262-pdf",
"file": "pdfs/ecma262.pdf",
@ -144,11 +144,18 @@
"rounds": 1,
"type": "eq"
},
{ "id": "fit11-talk",
"file": "pdfs/fit11-talk.pdf",
"link": true,
"rounds": 1,
"skipPages": [12,31],
"type": "eq"
},
{ "id": "fips197",
"file": "pdfs/fips197.pdf",
"link": true,
"rounds": 1,
"type": "load"
"type": "eq"
},
{ "id": "txt2pdf",
"file": "pdfs/txt2pdf.pdf",
@ -172,7 +179,7 @@
"file": "pdfs/extgstate.pdf",
"link": false,
"rounds": 1,
"type": "load"
"type": "eq"
},
{ "id": "usmanm-bad",
"file": "pdfs/usmanm-bad.pdf",
@ -199,6 +206,12 @@
"rounds": 1,
"type": "eq"
},
{ "id": "pal-o47",
"file": "pdfs/pal-o47.pdf",
"link": true,
"rounds": 1,
"type": "eq"
},
{ "id": "simpletype3font",
"file": "pdfs/simpletype3font.pdf",
"link": false,