mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[api-minor] Implement securityHandler in the scripting API (bug 1731578)
This commit is contained in:
parent
1ab9a6e36e
commit
91fc643ff9
7 changed files with 32 additions and 1 deletions
|
@ -66,6 +66,7 @@ class Doc extends PDFObject {
|
|||
this._numPages = data.numPages || 1;
|
||||
this._pageNum = data.pageNum || 0;
|
||||
this._producer = data.Producer || "";
|
||||
this._securityHandler = data.EncryptFilterName || null;
|
||||
this._subject = data.Subject || "";
|
||||
this._title = data.Title || "";
|
||||
this._URL = data.URL || "";
|
||||
|
@ -522,7 +523,7 @@ class Doc extends PDFObject {
|
|||
}
|
||||
|
||||
get securityHandler() {
|
||||
return null;
|
||||
return this._securityHandler;
|
||||
}
|
||||
|
||||
set securityHandler(_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue