get shavian-load test working

This commit is contained in:
Chris Jones 2011-07-05 18:46:08 -04:00
parent 7d54de5b32
commit b1f717cb7f
2 changed files with 3 additions and 2 deletions

View File

@ -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
View File

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