1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Make an effort to adhere the spec 7.6.3.2

This commit is contained in:
vyv03354 2013-02-02 02:09:12 +09:00
parent 43d6c6f1ab
commit 724add2ffd
3 changed files with 5 additions and 2 deletions

View file

@ -560,6 +560,7 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
var ownerPassword = stringToBytes(dict.get('O'));
var userPassword = stringToBytes(dict.get('U'));
var flags = dict.get('P');
this.disableTextLayer = !(flags & 16);
var revision = dict.get('R');
var encryptMetadata = algorithm == 4 && // meaningful when V is 4
dict.get('EncryptMetadata') !== false; // makes true as default value