mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 12:38:58 -06:00
An optional content membership dictionary may carry a visibility expression (/VE, PDF 1.6): [/And e...], [/Or e...] or [/Not e], each e an optional content group or a nested expression. It takes precedence over /OCGs and /P (ISO 32000-2 8.11.2.2). hayro-interpret ignored it, so content under such a dictionary stayed visible when its layers were hidden in the Layers panel. Vendored hayro-interpret patch (40) evaluates the expression, nested up to 32 deep. A malformed expression (unknown operator, /Not without exactly one operand, /And or /Or without any, an operand that is neither a group nor an expression, too deep) falls back to /OCGs and /P as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz