I'm looking into purchasing InDesign Server for the document automation features. One feature, Data Merge, would be a tremendous help for our company.
I'm having some trouble setting it up with a script.
Here's what I have running, just a basic test.
var myDocument = app.open(File("C:\\inetpub\\wwwroot\\indesign\\test.indd")); with (app.dataMergeOptions) { linkImages = true; removeBlankLines = false; createNewDocument = true; documentSize = 100; } // (end of dataMergeOptions) myDocument.dataMergeProperties.mergeRecords(); myDocument.exportFile(ExportFormat.PDF_TYPE, File ("c:\\inetpub\\wwwroot\\indesign\\merged.pdf")); myDocument.close ();
In the file I had it linked to a csv that pulled data but it seems the link has been broken (or out of date according to the error).
Can anyone help me with what I am doing wrong or even provide a better method?
I am running the script through PHP via SOAP in IIS running on Windows 2008 R2
InDesign Server CC 2014