mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
props() reads the whole annotation with references followed, so an indirect /C or /IC (ISO 32000-2 7.3.10) shows its colour, and "restylable" and the set_style / set_fill / set_part_opacity checks use the same build and fallback as the display (draw::can_draw), so such a comment can be restyled. Following references now counts every value copied, inner arrays and dictionaries included, and one display pass copies at most 4M values in all, so an object many annotations point at is not copied for each of them without bound. A cached appearance keeps what storing it needs (the undrawable character and a note's /Rect), so a cache hit follows no references at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn