Browse Source

get shavian-load test working

Chris Jones 14 years ago
parent
commit
b1f717cb7f
  1. 4
      crypto.js
  2. 1
      pdf.js

4
crypto.js

@ -139,9 +139,9 @@ var CipherTransform = (function() {
}, },
decryptString: function(s) { decryptString: function(s) {
var cipher = new this.stringCipherConstructor(); var cipher = new this.stringCipherConstructor();
var data = string2bytes(s); var data = stringToBytes(s);
data = cipher.encryptBlock(data); data = cipher.encryptBlock(data);
return bytes2string(data); return bytesToString(data);
} }
}; };
return constructor; return constructor;

1
pdf.js

@ -3566,6 +3566,7 @@ var CanvasGraphics = (function() {
}, },
execute: function(code, xref, resources) { execute: function(code, xref, resources) {
resources = xref.fetchIfRef(resources) || new Dict();
var savedXref = this.xref, savedRes = this.res, savedXobjs = this.xobjs; var savedXref = this.xref, savedRes = this.res, savedXobjs = this.xobjs;
this.xref = xref; this.xref = xref;
this.res = resources || new Dict(); this.res = resources || new Dict();

Loading…
Cancel
Save