mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Preserve Editing (on in the VectorCraft Default preset) embeds the native document in the PDF as an embedded file with a hash of the pages it was written with. document.open of a PDF, .ai or .ait restores it exactly (restored: true) and falls back to importing the artwork, with a first warning saying why, when the pages were changed elsewhere or the data can't be read; SVG and PDF share that fallback and its warnings. The legacy drawcraft payload name is read too. vectorcraft_pdf gains editing(), ImportReport.native and PdfOptions.native. document.save / file.saveAs / Save a Copy write .ai (format "ai" or an .ai path): every artboard as a PDF that always carries the document and takes the PDF options; a restored .ai keeps its path so Save writes .ai again, and .ait templates open their document untitled. The desktop save dialog lists the formats Save writes. Choosing a standard turns Preserve Editing off (PDF/A refuses it), Export for Screens and PDFs of some artboards leave it out with a warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>