Files
vectorcraft/crates
jmvergesandClaude Opus 5.5 a34140bd6a .ai import: clipping paths grouped in a compound path are its subpaths
A compound clipping path can hold its clipping paths in groups
(`*u u <path> W n … U *U`, possibly nested in other groups). The
reader passed a group of nothing but clipping paths up only to a clipping
group (`q` … `Q`). In a compound path it read each such group as a
clipping group of its own: several clipping paths in one group nested one
clipping group per path (their intersection), so the compound path held
clipping groups instead of subpaths and clipped nothing, and past the
document's depth limit (some files hold hundreds of them) the whole file
opened from its PDF part ("its clipping masks are nested too deeply").

`Reader::end_container` now also passes such a group's clipping paths up
when the group is in a compound path, directly or through other groups
(`Reader::in_compound`). The compound path takes them as subpaths, as it
already takes the other paths grouped in it (`ungrouped`), and as a
compound path of clipping paths it is one clipping path, their union,
which clips its clipping group. A group of clipping paths anywhere else is
read as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
..
…