mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure that Page.getOperatorList
handles Annotation parsing errors correctly (issue 15557)
*Fixes a regression from PR 15246, sorry about that!* The return value of all `Annotation.getOperatorList` methods was changed in PR 15246, however I missed updating the error code-path in `Page.getOperatorList` which thus breaks all operatorList-parsing for pages with corrupt Annotations.
This commit is contained in:
parent
dff444d441
commit
081e897588
4 changed files with 13 additions and 1 deletions
|
@ -486,7 +486,11 @@ class Page {
|
|||
"getOperatorList - ignoring annotation data during " +
|
||||
`"${task.name}" task: "${reason}".`
|
||||
);
|
||||
return null;
|
||||
return {
|
||||
opList: null,
|
||||
separateForm: false,
|
||||
separateCanvas: false,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue