mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
fixed reading from sream
This commit is contained in:
parent
7d5470a7e5
commit
c4d81646dc
1 changed files with 3 additions and 2 deletions
5
fonts.js
5
fonts.js
|
@ -386,11 +386,12 @@ var Font = (function Font() {
|
|||
|
||||
var fileArr = [];
|
||||
file.reset();
|
||||
file = file.getBytes();
|
||||
for (var i = 0, ii = file.length; i < ii; ++i)
|
||||
fileArr.push(file[i]);
|
||||
|
||||
writeToFile(data, '/tmp/' + name + '_orig');
|
||||
writeToFile(fileArr, '/tmp/' + name + '_new');
|
||||
writeToFile(data, '/tmp/' + name + '_new');
|
||||
writeToFile(fileArr, '/tmp/' + name + '_orig');
|
||||
|
||||
this.data = data;
|
||||
this.textMatrix = properties.textMatrix || IDENTITY_MATRIX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue