Jonas Jenwald 3c78ff5fb0 [api-minor] Implement basic support for OptionalContent Usage dicts (issue 5764, bug 1826783)
The following are some highlights of this patch:
 - In the Worker we only extract a *subset* of the potential contents of the `Usage` dictionary, to avoid having to implement/test a bunch of code that'd be completely unused in the viewer.

 - In order to still allow the user to *manually* override the default visible layers in the viewer, the viewable/printable state is purposely *not* enforced during initialization in the `OptionalContentConfig` constructor.

 - Printing will now always use the *default* visible layers, rather than using the same state as the viewer (as was the case previously).
   This ensures that the printing-output will correctly take the `Usage` dictionary into account, and in practice toggling of visible layers rarely seem to be necessary except in the viewer itself (if at all).[1]

---
[1] In the unlikely case that it'd ever be deemed necessary to support fine-grained control of optional content visibility during printing, some new (additional) UI would likely be needed to support that case.
2024-03-12 13:18:15 +01:00
..
2016-04-11 08:02:06 -05:00
2021-04-10 19:13:28 +02:00
2016-04-11 08:02:06 -05:00
2021-06-08 10:37:26 +02:00
2020-08-08 11:50:19 +02:00
2017-01-10 16:42:43 +00:00
2017-04-10 16:18:08 -07:00
2017-04-05 15:17:38 -07:00
2021-05-12 11:42:08 -07:00
2017-08-03 22:19:36 -07:00
2018-09-02 21:23:09 +02:00
2018-09-02 21:23:09 +02:00
2018-09-02 21:23:09 +02:00
2021-10-17 16:27:05 +02:00
2021-10-17 16:27:05 +02:00
2021-10-17 16:27:05 +02:00
2021-10-17 16:27:05 +02:00
2021-10-17 16:27:05 +02:00
2021-09-23 13:05:18 +02:00
2021-11-27 19:30:12 +01:00