mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 15:51:56 +00:00
A PDF-compatible .ai (or a PDF saved with the editing data) now opens from its layers without its PDF part being imported, and without being compared with its page, when: - its text document makes the type of every text object, hidden ones included, at least one text object shows, and none is drawn by the appearance of the layer or group it is in; - its layers hold no unread object, no placed file with a second placement and no live envelope with drawn art to fall back on, and no image too large to read; - it declares no large canvas, and its artboards are its pages' trim boxes one for one, in points or in the first page's UserUnit. A file whose layers draw differently from its page then opens from its layers instead of its PDF part. The bleed comes from the pages' bleed boxes. The check runs only when no pages are picked, layers and the editing data are on, the crop box is asked for and type comes in as text. Files saved without PDF compatibility, files whose PDF part draws only type or nothing, and files whose PDF part's content can't be read take the same path when they qualify: their bleed comes from the pages' bleed boxes, pages in units larger than a point draw them at their size in points, and the note that the PDF part couldn't be read is not given, since its content is not read. Files that don't qualify open as before, and the editing data decoded and read for the check is reused after the PDF part is imported (layered_ai_from). When a file whose PDF part can't be read is scaled up to its size in points, its text wraps are now laid out again at that size, and the default graphic styles of a file without graphic styles of its own are no longer scaled. The same applies on the new path.