From: sbarman Date: Tue, 16 Aug 2011 21:49:17 +0000 (-0700) Subject: Merge branch 'writeToFile' into hmm X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b91fca34702e37b7f6d7eb958e8d70f51b2602d;p=pdf.js.git Merge branch 'writeToFile' into hmm --- 9b91fca34702e37b7f6d7eb958e8d70f51b2602d diff --cc fonts.js index 356d7f9,3a52ae8..e2f2785 --- a/fonts.js +++ b/fonts.js @@@ -446,12 -384,20 +446,21 @@@ var Font = (function Font() break; } + 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 + '_new'); + writeToFile(fileArr, '/tmp/' + name + '_orig'); + this.data = data; - this.textMatrix = properties.textMatrix || IDENTITY_MATRIX; this.type = properties.type; + this.textMatrix = properties.textMatrix; this.loadedName = getUniqueName(); this.compositeFont = properties.compositeFont; + this.loading = true; }; var numFonts = 0; diff --cc web/viewer.html index 285dadb,bf708c4..5498d8a --- a/web/viewer.html +++ b/web/viewer.html @@@ -10,56 -10,25 +10,57 @@@ + - +
- - - - - + + + + +
+ + + + / -- - + +
+ + + +
+ + + +
+ + --
-
- + + +