mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 08:23:20 +00:00
A save as .ai or .ait (file.saveCopy, file.saveAs, document.save and file.saveAsTemplate) set range to "all" before the file was written. The one exception was a legacy .ai of version 7 given a range, which its encoder checks. Every other save accepted an artboard, artboards or range that names an artboard the document does not have (artboards: [5] on a document of three artboards) and wrote every artboard. document.export refuses the same value. The save now refuses such a value with the export's error, under the name of the command that was run, and writes no file. A range that is not text, such as range: 42, was also replaced by "all". The save now leaves it for the encoder, which refuses it as an export does. An artboard the document has, or an empty artboards list, is still saved with every artboard, and a legacy .ai still writes the artboards of its range.