.ai import: legacy files without layers open through the format reader

Squashed from #5209 onto main.
This commit is contained in:
dotCooCoo
2026-11-02 14:32:58 +07:00
committed by bflatastic
parent ec0a98a77b
commit f69f7976b7
5 changed files with 102 additions and 16 deletions
+2
View File
@@ -43,6 +43,8 @@ private editing data. VectorCraft:
write) is its own editing data: it opens through the layers its program has, compared with its page
when the program runs, from the layers alone when it names its prolog without including it (#1027), and with its art on one
layer when it has no layers (Illustrator 3, and image editors' exported paths: storytold/photocraft#6036).
A file without layers whose program runs opens through that layer too, compared with its page, so its
objects keep what only the format records (locks, for example); it opens as its page when the layer can't be used.
A multi-layer mask (`Mb` … `Md` … `MB`) comes in as a clipping group in each layer it covers, each
clipped by a copy of the mask's path.
RGB in the PDF page's `ICCBased` spaces keeps the file's numbers in a `.ai` (the `uncalibrated_rgb`