mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure we don't modify the original PDF data when sanitizing TrueType
This commit is contained in:
parent
869b8788ab
commit
9b4ca246e4
1 changed files with 3 additions and 0 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue