1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Correctly order added annotations when saving or printing

- the annotations must be rendered in the same order as the chronological one.
- fix a bug in document.js which avoids to read a saved pdf correctly in Acrobat:
  there is no need to reset the xref state: it's done in worker.js once everything
  has been saved.
This commit is contained in:
Calixte Denizet 2022-06-23 16:27:03 +02:00
parent c5dc082da4
commit e49d039853
3 changed files with 7 additions and 24 deletions

View file

@ -6638,8 +6638,7 @@
"fontSize": 10,
"value": "Hello World",
"pageIndex": 0,
"rect": [67.5, 543, 119, 556.5],
"orderIndex": 0
"rect": [67.5, 543, 119, 556.5]
},
"pdfjs_internal_editor_1": {
"annotationType": 15,
@ -6662,8 +6661,7 @@
]
}],
"pageIndex": 0,
"rect": [71.5, 534.5, 115, 562],
"orderIndex": 1
"rect": [71.5, 534.5, 115, 562]
}
}
}