title: Replacing text in .ai, .pdf, .eps etc for print in Python
body: <p>My problem boils down to this: I have an Adobe Illustrator file with a simple pattern to be etched into an object using a laser. Each object has an ID tag that until now has been manually edited before each print to the laser. We are wanting to do this programmatically, so I am trying to write a script that can find the tag as text in the file, replace it, then save it.</p>
  
  <p>The file type is flexible so long as it is vector-based, and so is the language. I'm just most familiar with Python. So far I haven't been able to find a module that can simply open a .pdf, replace some text, then save it. The closest I have gotten is manually editing the text in a pdf using sublime text. Is my approach to this problem wrong, and if so are there any better solutions? Thank you.</p>