mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +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
|
@ -1352,28 +1352,6 @@ var PDFView = {
|
|||
// AcroForm/XFA was found
|
||||
PDFView.fallback();
|
||||
}
|
||||
|
||||
if (info.IsTextCopyDisabled) {
|
||||
document.getElementById('viewerContainer').classList
|
||||
.add('copy-protection');
|
||||
} else {
|
||||
document.getElementById('viewerContainer').classList
|
||||
.remove('copy-protection');
|
||||
}
|
||||
|
||||
if (info.IsPrintDisabled) {
|
||||
if (PDFView.supportsPrinting) {
|
||||
document.getElementById('print').classList.add('hidden');
|
||||
}
|
||||
document.getElementById('viewerContainer').classList
|
||||
.add('print-protection');
|
||||
} else {
|
||||
if (PDFView.supportsPrinting) {
|
||||
document.getElementById('print').classList.remove('hidden');
|
||||
}
|
||||
document.getElementById('viewerContainer').classList
|
||||
.remove('print-protection');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -1640,9 +1618,6 @@ var PDFView = {
|
|||
},
|
||||
|
||||
beforePrint: function pdfViewSetupBeforePrint() {
|
||||
if (this.documentInfo.IsPrintDisabled) {
|
||||
return;
|
||||
}
|
||||
if (!this.supportsPrinting) {
|
||||
var printMessage = mozL10n.get('printing_not_supported', null,
|
||||
'Warning: Printing is not fully supported by this browser.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue