The big issue is exposing the features / options in a consistent way which an automated system can access.
I just worked up as a proof-of-concept here at work an AppleScript which takes an InDesign document and:
- extracts the page size
- extracts the filename/path of a graphic on a layer named Graphic
- extracts the font, size, color, position and rotation information from the boxes on a ``Text'' layer (had justification, but ran out of macro arguments and couldn't use it)
and writes all that out into a .txt file which xelatex is then able to read in and will use to determine the formatting used when typesetting a .cvs
senior graphic designer
Sphinx of black quartz, judge my vow.