I have one Adobe Indesign indd file which I need to merge data (MailMerge).
I use Adobe InDesign Server 5.5 to run below InDesign script.
var _Path_INDD = "/c/ServerTestFiles/Dummy/Template.indd";
var _Path_CSV = "/c/ServerTestFiles/Dummy/Input.csv";
var _Path_PDF = "/c/ServerTestFiles/Dummy/Output.pdf";
var myDocument = app.open(File(_Path_INDD), OpenOptions.OPEN_COPY);
var myDataSource = File(_Path_CSV);
myDocument.dataMergeProperties.selectDataSource(myDataSource);
myDocument.dataMergeProperties.mergeRecords();
app.documents.item(0).exportFile(ExportFormat.pdfType, File(_Path_PDF), app.pdfExportPresets.item("[Press Quality]"));
It run and give me PDF file as I wanted.
But my problem is performance. It takes 10 seconds to generate a PDF file by using single line of CSV file. So If my CSV is 100k lines, then it will be take more than 10 days to finish that process.
It is so funny. But I still don't know how to make more faster performance when it come to InDesign script.
Could anyone give me suggestion please?