mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixes password for range request loading
This commit is contained in:
parent
220c827e9e
commit
61a7738a5d
6 changed files with 73 additions and 29 deletions
|
@ -56,6 +56,13 @@ var BasePdfManager = (function BasePdfManagerClosure() {
|
|||
|
||||
requestLoadedStream: function BasePdfManager_requestLoadedStream() {
|
||||
return new NotImplementedException();
|
||||
},
|
||||
|
||||
updatePassword: function BasePdfManager_updatePassword(password) {
|
||||
this.pdfModel.xref.password = this.password = password;
|
||||
if (this.passwordChangedPromise) {
|
||||
this.passwordChangedPromise.resolve();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue