mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Reverts 729b82, d5f65f and 724add
This commit is contained in:
parent
74c3508bcd
commit
6ce1cfe734
4 changed files with 0 additions and 42 deletions
|
@ -538,11 +538,8 @@ var PDFDocument = (function PDFDocumentClosure() {
|
|||
return shadow(this, 'numPages', num);
|
||||
},
|
||||
getDocumentInfo: function PDFDocument_getDocumentInfo() {
|
||||
var encrypt = this.xref.encrypt;
|
||||
var docInfo = {
|
||||
PDFFormatVersion: this.pdfFormatVersion,
|
||||
IsTextCopyDisabled: encrypt ? encrypt.disableTextCopy : false,
|
||||
IsPrintDisabled: encrypt ? encrypt.disablePrint : false,
|
||||
IsAcroFormPresent: !!this.acroForm
|
||||
};
|
||||
if (this.xref.trailer.has('Info')) {
|
||||
|
|
|
@ -561,8 +561,6 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|||
var ownerPassword = stringToBytes(dict.get('O'));
|
||||
var userPassword = stringToBytes(dict.get('U'));
|
||||
var flags = dict.get('P');
|
||||
this.disableTextCopy = !(flags & 16);
|
||||
this.disablePrint = !(flags & 4);
|
||||
var revision = dict.get('R');
|
||||
var encryptMetadata = algorithm == 4 && // meaningful when V is 4
|
||||
dict.get('EncryptMetadata') !== false; // makes true as default value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue