mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
The PDF Text preference decided whether a place was a PDF by the extension of its path or name, so a file.place with dataBase64 and no name, or a name with another extension, kept its type editable with Outlines set. file.place reads such bytes as a PDF by their content. Bytes now count as a PDF when they start with %PDF, as file.place detects them; only the first bytes are decoded for the check. A .ai or .ait name is still placed as the file says, and a path is still checked by its extension. A test covers unnamed bytes, another extension and a .ai name.