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

1
pdf.js

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

Loading…
Cancel
Save