title: Parse Adobe Illustrator (.ai) files with Python
body: <p>I'm using Python under Linux. Could you please recommend some libs or command line tools to parse Adobe Illustrator (.ai) files which I can use in my Python program?</p>
  
  <p>What I need to do includes:</p>
  
  <ol>
  <li>Convert .ai files to .jpeg or .png images</li>
  <li>Extract text from .ai files</li>
  <li>Read .ai files information (e.g. version number, something like <a href="http://www.telegraphics.com.au/svn/psdparse/" rel="noreferrer">psdparse</a> for AI)</li>
  </ol>
  
  <p>I need it under Ubuntu so I cannot use win32com</p>