mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 21:10:40 +00:00
A PDF-compatible .ai now also carries, on its first page's PieceInfo, an editing copy of the art in the form VectorCraft's own .ai reader reads: AIPrivateData streams of 64 KiB holding the program compressed with Zstandard after %AI24_ZStandard_Data, an AIMetaData stream of its header comments, and the ContainerVersion, CreatorVersion, NumBlock, RoundtripStreamType and RoundtripVersion entries. The program holds the header comments, the color swatches and color groups, every artboard, layers and sublayers (name, order, visibility, lock, color, printing, dimming), groups, paths, fills and strokes (width, caps, joins, miter limit, dashes, overprint, fill rule), process, spot and global colors, guides, hidden and locked objects and object names. Type, gradients, patterns, images, symbols, live objects, brushes, clipping groups and compound paths are written as plain filled and stroked paths, each with a warning; transparency and effects other than geometry effects are left out. The .ai option editingData (on by default, Include Editing Data for Other Apps in Save As) turns it off. The legacy version 7 writer is unchanged; the path, guide and line style operators both writers write move to eps/src/ai_ops.rs. LoadOptions::native off opens a file from its editing copy or pages instead of the VectorCraft document it carries.