1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Optional Content (OC) radiobutton (RB) groups implemented. Resolves #18823.

The code parses the /RBGroups entry in the OC configuration dict and adds the property `rbGroups' to instances of the OptionalContentGroup class. rbGroups takes an array of Sets, where each Set instance represents an RB group the OptionalContentGroup instance is a member of. Such a Set instance contains all OCG ids within the corresponding RB group. RB groups an OCG is associated with are processed when its visibility is set to true, as required by the PDF spec.
This commit is contained in:
Alexander Grahn 2024-10-14 14:18:29 +02:00
parent e1f9fa4ea5
commit 441efe456e
5 changed files with 78 additions and 15 deletions

View file

@ -589,6 +589,7 @@
!issue15690.pdf
!bug1802888.pdf
!issue15759.pdf
!issue18823.pdf
!issue15753.pdf
!issue15789.pdf
!fields_order.pdf

BIN
test/pdfs/issue18823.pdf Normal file

Binary file not shown.

View file

@ -6875,6 +6875,23 @@
"7R": false
}
},
{
"id": "issue18823-default",
"file": "pdfs/issue18823.pdf",
"md5": "f5246c476516c96df106ced0c5839da3",
"rounds": 1,
"type": "eq"
},
{
"id": "issue18823-group-three",
"file": "pdfs/issue18823.pdf",
"md5": "f5246c476516c96df106ced0c5839da3",
"rounds": 1,
"type": "eq",
"optionalContent": {
"15R": true
}
},
{
"id": "issue2829",
"file": "pdfs/issue2829.pdf",