Guess that a checkbox belongs to a group in using its T value (bug 1838855)

This commit is contained in:
Calixte Denizet 2023-06-16 18:45:09 +02:00
parent 04c31a55d2
commit 5c0054d58d
5 changed files with 76 additions and 4 deletions

View file

@ -1674,6 +1674,11 @@ class PDFDocument {
}
}
if (!field.has("Kids") && /\[\d+\]$/.test(name)) {
// We've a terminal node: strip the index.
name = name.substring(0, name.lastIndexOf("["));
}
if (!promises.has(name)) {
promises.set(name, []);
}