Native Illustrator format is sort of "augmented Postscript", see the spec, AFAIK this was last official document for 20+ y.o. version. New features were added of course, but the core and syntax remain the same. Among free tools, both Inkscape (regardless of what they claim on linked page) and sk1 have long dropped support for exporting to ai. Online, here I succeeded with conversion, (while the link which tobyink provided has failed), looks like some old version of sk1 uniconvertor was used on the server, and indeed some very old ai file (version 5, 25+ y.o.) was produced.

Is this necessary at all? For the last 20 years, ai are saved as pdf (file extension doesn't matter), with pdf as "envelope" and "ai" hidden inside as private data. Worth checking -- change extension to ai, will Illustrator silently import the pdf "envelope"? I suspect it might, so receiving side won't even know. Then, experiment a little, which Perl distribution (PDF::API2, etc.) produce cleanest (or just good enough) pdf code for your kind of data (I mean, since PDF is "machingen for machines", source never seen by human eyes, there may be ugly redundancies, etc.). Of course, if consumer is strongly serious about "ai only", this little cheat won't do, no choice but use Adobe (or more expensive) tools.


In reply to Re: .ai and .svg file writing by vr
in thread .ai and .svg file writing by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.