mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
[api-minor] Stop using the beginAnnotations
/endAnnotations
operators (PR 14998 follow-up)
After the changes in PR 14998, these operators are now no-ops in the `src/display/canvas.js` code and should no longer be necessary. Given that `beginAnnotations`/`endAnnotations` are not in the PDF specification, but are rather *custom* PDF.js operators, it seems reasonable to stop using them now that they've become no-ops.
This commit is contained in:
parent
b5fb6cdb96
commit
bbf857d635
4 changed files with 6 additions and 11 deletions
|
@ -19,7 +19,6 @@ import {
|
|||
info,
|
||||
InvalidPDFException,
|
||||
isArrayEqual,
|
||||
OPS,
|
||||
PageActionEventType,
|
||||
RenderingIntentFlag,
|
||||
shadow,
|
||||
|
@ -467,11 +466,9 @@ class Page {
|
|||
}
|
||||
|
||||
return Promise.all(opListPromises).then(function (opLists) {
|
||||
pageOpList.addOp(OPS.beginAnnotations, []);
|
||||
for (const opList of opLists) {
|
||||
pageOpList.addOpList(opList);
|
||||
}
|
||||
pageOpList.addOp(OPS.endAnnotations, []);
|
||||
pageOpList.flush(true);
|
||||
return { length: pageOpList.totalLength };
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue