Merge pull request #3265 from yurydelendik/issue-3263

Ensure we don't modify the original PDF data when sanitizing TrueType
This commit is contained in:
Brendan Dahl 2013-05-17 09:53:05 -07:00
commit 59d0ccf64b
3 changed files with 13 additions and 0 deletions

View File

@ -3870,6 +3870,9 @@ var Font = (function FontClosure() {
}
}
// The following steps modify the original font data, making copy
font = new Stream(new Uint8Array(font.getBytes()));
// Check that required tables are present
var requiredTables = ['OS/2', 'cmap', 'head', 'hhea',
'hmtx', 'maxp', 'name', 'post'];

View File

@ -0,0 +1 @@
http://visionmedia.dev.cervantesvirtual.com/web/220816.pdf

View File

@ -1113,6 +1113,15 @@
"rounds": 1,
"type": "eq"
},
{ "id": "issue3263",
"file": "pdfs/issue3263.pdf",
"md5": "cee1cf0bd7ce6681cdb97c8e42697d81",
"rounds": 1,
"link": true,
"firstPage": 18,
"lastPage": 19,
"type": "eq"
},
{ "id": "issue2761",
"file": "pdfs/issue2761.pdf",
"md5": "35df0b8cff4afec0c08f08c6a5bc9857",