I have an Adobe Illustrator file (.ai) I made with Illustrator CC (2014 edition). I want to use it to automatically generate many graphics using information from a database. The following are (fictional) examples to illustrate my question.
The Template Graphic
The graphic is very simple. It contains a dark blue rectangle and three entries of text. Each of the text entries uses a different font, size, and color. The styling of the word "CHICAGO" also uses Illustrator's envelope feature to create an arc effect (the effect is important to this project). Here's how the graphic looks:
I have a database of cities. (It doesn't matter what form the database of city names is in, I can provide any form needed.) The database is very large (in other words, too big to type each city in by hand and probably large enough to create issues when copy-and-pasting in all the entries). A sample of the database entries is below:
New York|New York
The Required Task
I want to automatically generate a graphic for each entry in the database. If I were to do this by hand, the steps (omitting the obvious) would be:
- Change the text of the city and the state.
- Re-center everything.
- Save for web changing the width to 500 pixels and the format to PNG.
The Desired Result
I would like to be left with a folder of images such as these:
How can this be done using Adobe Illustrator?
Approaches that require programming are welcome.
Approaches adding additional tools to Illustrator are welcome.