mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
A .ai file's editing data can include a placed EPS file's bytes between %%BeginDocument: and %%EndDocument. The reader did not read those bytes: in the %AI5_BeginPlace form the placed file showed only the preview the data keeps of it, or an unread placeholder box without one, and in the version 7 form the art the file draws came in as editable paths with a note that placed files weren't read. - The reader keeps those bytes (up to 256 MB) and makes the placed file a placed document of them, in the file's bounding box where the matrix puts it. It draws its art whether or not its file is found, and a native save keeps the bytes. The version 7 form's placed EPS art is no longer editable on open. - A placed file stays as before when its bytes are a DCS file (File > Place makes those linked images), have no bounding box of their own, carry a VectorCraft document (as VectorCraft's EPS export writes), don't read as an EPS file, or belong to a file named .ai or .ait. What reading the bytes warns of is in the open result. - One with a preview that an image variable binds stays the linked image showing its preview, as a placed PDF page does. - The link takes the size and hash of the bytes, so a file found unchanged is neither missing nor modified. - Drawing and the open check each read at most 8 placed EPS files inside one another, so a file whose included files include others opens. The open check draws the placed documents inside the bytes from their previews, and it reads each included file once at each depth. A file nested 12 levels deep opens with at most 8 drawing reads and 72 checks. - File > Package with Copy Fonts reads the type of a placed EPS file, as it reads a placed PDF page's, and of the EPS files it includes in turn, pattern art included. - On %_ lines the %_ that starts each line is taken off. Then one line end is taken off the end of the bytes when another line end comes before it: the one the %%BeginDocument: line ends with when the bytes end with it, otherwise the last one. An LF after a CR is kept with it when the file's first line ends with CRLF. Docs: docs/target-app-parity.md.