We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5631e5b + 48fa017 commit e61b104Copy full SHA for e61b104
src/obj.js
@@ -342,8 +342,9 @@ var XRef = (function XRefClosure() {
342
343
var encrypt = trailerDict.get('Encrypt');
344
if (encrypt) {
345
- var fileId = trailerDict.get('ID');
346
- this.encrypt = new CipherTransformFactory(encrypt, fileId[0], password);
+ var ids = trailerDict.get('ID');
+ var fileId = (ids && ids.length) ? ids[0] : '';
347
+ this.encrypt = new CipherTransformFactory(encrypt, fileId, password);
348
}
349
350
// get the root dictionary (catalog) object
0 commit comments