mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Fixes text search for "secured" documents
This commit is contained in:
parent
3699c311bb
commit
d5f65f5431
6 changed files with 21 additions and 5 deletions
|
@ -1350,6 +1350,14 @@ 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');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue