mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #909 from notmasteryet/tree-45
Fixing TrueType code-glyph assigmnent to pass sanitizer
This commit is contained in:
commit
853f16085f
4 changed files with 29 additions and 2 deletions
|
@ -139,6 +139,11 @@ function nextPage(task, loadError) {
|
|||
if (task.skipPages && task.skipPages.indexOf(task.pageNum) >= 0) {
|
||||
log(' skipping page ' + task.pageNum + '/' + task.pdfDoc.numPages +
|
||||
'... ');
|
||||
// empty the canvas
|
||||
canvas.width = 1;
|
||||
canvas.height = 1;
|
||||
clear(canvas.getContext('2d'));
|
||||
|
||||
snapshotCurrentPage(task, '');
|
||||
return;
|
||||
}
|
||||
|
|
1
test/pdfs/lista_preliminar.pdf.link
Normal file
1
test/pdfs/lista_preliminar.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
http://www.lfg.com.br/concursodebolsas/lista_preliminar_classificao.pdf
|
|
@ -332,5 +332,13 @@
|
|||
"pageLimit": 5,
|
||||
"skipPages": [1],
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "lista_preliminar",
|
||||
"file": "pdfs/lista_preliminar.pdf",
|
||||
"md5": "4eff251319eeb660ba8a7a5cfac7787d",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"pageLimit": 3,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue