The default configuration's /AS array (usage application dictionaries) was
never read, so a group whose /Usage /View /ViewState is OFF and that a
/View usage application manages still drew on screen.
- hayro-interpret patch (67): OcgState::from_catalog applies the View
event's auto state after /BaseState, /ON and /OFF and before
ocg_overrides. Each application with /Event /View and /View in
/Category recommends each listed group's /ViewState; a group is ON only
if every recommendation is ON. /Zoom, /User and /Language give no
recommendation. At most 256 applications, 4096 /OCGs entries and 16
categories each are read. InterpreterSettings::view_auto_state (on by
default) switches it.
- render: RenderConfig::for_print turns it off; print as image sets it,
since printing is not the View event.
- inspect: a layer's initial and visible state apply the same auto state,
so the Layers panel and doc_info match the page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC