1
0
Fork 0
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:
Jonas Jenwald 2022-10-10 09:40:30 +02:00
parent dff444d441
commit 081e897588
4 changed files with 13 additions and 1 deletions

View file

@ -486,7 +486,11 @@ class Page {
"getOperatorList - ignoring annotation data during " +
`"${task.name}" task: "${reason}".`
);
return null;
return {
opList: null,
separateForm: false,
separateCanvas: false,
};
})
);
}