I am doing some research for some functionality I need to create. I want to allow a designer to create documents in InDesign, then take those files and programmatically replace a few images or text. However, I want to be able to do this hundreds or thousands of times and still have the originals for later. From some initial reading, it seems that I can use Javascript to manipulate the DOM to replace images and text. I'm not quite sure how this all works though. I want to use the SOAP API and I think just send some javascript that tells IDS what "template" to open, use xpath to replace specified photos and text areas, then save the modified file to a network share or something. Does that sound reasonable?
↧