Attach (recommended) or Link to PDF file
https://octopdf.com/octopdf-sample.pdf
Web browser and its version
Firefox 144.0.2
Operating system and its version
macOS
PDF.js version
from Firefox 144.0.2
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Annotations can be assigned to an Optional Content Descriptor too. not just pages. But this isn't currently supported in pdf.js and they are always visible, regardless of which OC layers are visible.
- Open the PDF, bring up the "layers" tab
- Disable the "Form" layer
The widgets on page two are within that layer and should disappear, yet they remain visible.
What is the expected behavior?
As described
What went wrong?
As described
Link to a viewer
No response
Additional context
No response