mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
added ability to write data to file
This commit is contained in:
parent
870027136a
commit
c67037e268
2 changed files with 9 additions and 3 deletions
8
fonts.js
8
fonts.js
|
@ -384,6 +384,14 @@ var Font = (function Font() {
|
|||
break;
|
||||
}
|
||||
|
||||
var fileArr = [];
|
||||
file.reset();
|
||||
for (var i = 0, ii = file.length; i < ii; ++i)
|
||||
fileArr.push(file[i]);
|
||||
|
||||
writeToFile(data, '/tmp/' + name + '_orig');
|
||||
writeToFile(fileArr, '/tmp/' + name + '_new');
|
||||
|
||||
this.data = data;
|
||||
this.textMatrix = properties.textMatrix || IDENTITY_MATRIX;
|
||||
this.type = properties.type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue