1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Fix missing annotation parent in using the one from the Fields entry

Fixes #15096.
This commit is contained in:
Calixte Denizet 2024-10-03 21:48:58 +02:00
parent 7c1883a839
commit 3103deaa44
7 changed files with 67 additions and 11 deletions

View file

@ -522,7 +522,9 @@ class WorkerMessageHandler {
});
handler.on("GetFieldObjects", function (data) {
return pdfManager.ensureDoc("fieldObjects");
return pdfManager
.ensureDoc("fieldObjects")
.then(fieldObjects => fieldObjects?.allFields || null);
});
handler.on("HasJSActions", function (data) {