-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Optional Content Radio Button Groups #18823
Comments
@agrahn I think you've a patch ready for this feature, if it's correct, would you mind to make a PR please ? |
I am trying to figure out how to do an integration test. I followed the instructions on testing applied on the |
You can create a file
Edit: |
…ozilla#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.
…ozilla#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.
Is the feature relevant to the Firefox PDF Viewer?
Yes
Feature description
The PDF spec defines the
/RBGroups
entry in the optional content configuration dictionary. It allows OCGs to be to added to groups of OCGs that follow the radio-button paradigm: From all OCGs within a Radio Button Group only one can be enabled at a time. Enabling an OCG, e. g. in the Layers tab of the PDF viewer, automatically hides the previously visible OCG in that group. An OCG can be a member of multiple Radio Button Groups. The attached example PDF has two radio button groups, where one OCG, "3", belongs to both radio-button groups. If that one is enabled, any currently visible OCG belonging to the rb groups is hidden. There is also one OCG, "7", which is unrelated to the rb groups.Other PDF viewers
The attached PDF opened in KDE Okular which correctly implements OC radio button groups:
radioBtnGrp.pdf
The text was updated successfully, but these errors were encountered: