Repository navigation
#1025: .ai editing data keeps sublayers with global colours and pattern fills - #1069
Merged
Merged
Conversation
…rn fills The editing-data reader stopped on `Xk`/`XK` (global process colours) and on `p`/`P` (pattern fills), so the file fell back to its PDF part, which has only the top-level layers. - `Xk`/`XK` read like `Xx`: a global swatch (not a spot ink), linked at its tint. - `%AI3_BeginPattern` sections are read by a reader of their own into pattern swatches (tile from `(name) llx lly urx ury`, art in pattern space); `p`/`P` fill or stroke with them, placed by the operator's matrix. A pattern it can't read whole still makes a fill with it unreadable, as before. - Tests on synthetic editing data; fuzz tokens and fixture extended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 10, 2026
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1025.
The editing-data reader stopped on
Xk/XK(global process colours) andon
p/P(pattern fills), so the file fell back to its PDF part, which hasonly the top-level layers.
Xk/XKread likeXx: a global swatch (not a spot ink), linked at its tint.%AI3_BeginPatternsections are read by a reader of their own intopattern swatches (tile from
(name) llx lly urx ury, art in pattern space);p/Pfill or stroke with them, placed by the operator's matrix. A patternit can't read whole still makes a fill with it unreadable, as before.
Checks
cargo xtask ci: all 7 steps passed (on the top of Bug: .ai import: a global colour (Xk/XK) or a pattern fill in the editing data drops every sublayer #1025 + Bug: PostScript-form .ai files don't open: the PostScript reader stops on Illustrator's operators (Adobe_packedarray,Np,Lb) #1027, stacked in order).🤖 Generated with Claude Code