mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 21:11:52 +00:00
The panel listed every group in /OCGs, flat. Table 99 says only the groups
/Order lists are presented, nested arrays as a tree, and a leading text
string in a nested array as a non-selectable label; in the default
configuration /Order defaults to the empty array.
- render: DocInfo::layer_order, rows of LayerRow { depth, item } where an
item is a layer (index into DocInfo::layers) or a label. A nested array's
entries are one level deeper than the layer or label before them. At most
4096 rows, 32 levels and 256 characters a label; an indirect array is read
once, so cycles end. DocInfo::layers is unchanged: unlisted groups keep
their state, draw, print and answer layer_set and set-layer actions.
- ui-egui: the Layers panel draws the rows, indented 16 points a level, a
label as a heading that can't be toggled; the count is the layers shown.
A document whose /Order lists none says so.
- automation: doc_info reports layer_order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC