Adds test for issue 3371 and enables testing with password.
This commit is contained in:
parent
510387f551
commit
27c8291ea1
4 changed files with 12 additions and 1 deletions
|
@ -137,7 +137,10 @@ function nextTask() {
|
|||
PDFJS.disableRange = task.disableRange || masterMode;
|
||||
PDFJS.disableAutoFetch = !task.enableAutoFetch || masterMode;
|
||||
try {
|
||||
var promise = PDFJS.getDocument(absoluteUrl);
|
||||
var promise = PDFJS.getDocument({
|
||||
url: absoluteUrl,
|
||||
password: task.password
|
||||
});
|
||||
promise.then(function(doc) {
|
||||
task.pdfDoc = doc;
|
||||
continuation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue