1
0
Fork 0
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:
sbarman 2011-07-21 11:51:39 -07:00
parent 870027136a
commit c67037e268
2 changed files with 9 additions and 3 deletions

View file

@ -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;