mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
The layers of PDF and PDF-compatible .ai files come from their optional content groups, whose /Name is a PDF text string. The import read a name without a byte order mark as Latin-1. Such a string is PDFDocEncoding (ISO 32000-1 Annex D, Table D.2), which differs from Latin-1 at 0x18 to 0x1F and 0x80 to 0xA0. A group named (Art\205final) opened as a layer named "Art", U+0085, "final" instead of "Art–final", and curly double quotes (0x8D, 0x8E) and the euro sign (0xA0) became control characters and a no-break space. text_string now reads such a string with the PDFDocEncoding table that File Info already used for the document information dictionary. The table moves from file_info.rs to import_scan.rs, and File Info reads the information dictionary's strings with text_string.