mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15: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
|
@ -1198,14 +1198,6 @@ canvas {
|
|||
background-color: rgba(0, 100, 0, 0.2);
|
||||
}
|
||||
|
||||
#viewerContainer.copy-protection .textLayer > div {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#viewerContainer.copy-protection .textLayer > div > .highlight {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* TODO: file FF bug to support ::-moz-selection:window-inactive
|
||||
so we can override the opaque grey background when the window is inactive;
|
||||
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
|
||||
|
@ -1358,10 +1350,6 @@ canvas {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
#viewerContainer.print-protection {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page {
|
||||
float: left;
|
||||
display: none;
|
||||
|
|
|
@ -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