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

Implements the print permission

This commit is contained in:
vyv03354 2013-02-08 23:23:01 +09:00
parent 51c81a1d01
commit 729b82359a
4 changed files with 23 additions and 0 deletions

View file

@ -542,6 +542,7 @@ var PDFDocument = (function PDFDocumentClosure() {
var docInfo = {
PDFFormatVersion: this.pdfFormatVersion,
IsTextCopyDisabled: encrypt ? encrypt.disableTextCopy : false,
IsPrintDisabled: encrypt ? encrypt.disablePrint : false,
IsAcroFormPresent: !!this.acroForm
};
if (this.xref.trailer.has('Info')) {