Reply To: Export pdf in Original Folder

#89625
Kathy Cote
Member

Ok I have my working code. I would now add “_LR” at the end of the name of the pdf. I tried several things but it does not work. Can someone help me with this?

while(app.documents.length>0){
var myDoc = app.activeDocument;
myDoc=myDoc.filePath+”/”+myDoc.name.split(“.indd”).join(“.pdf”);
//alert(myDoc);
var exportfile=new File(myDoc);
app.activeDocument.exportFile(ExportFormat.pdfType, exportfile, false, “LR”);
app.activeDocument.close();
}

This article was last modified on November 8, 2016

Comments (0)

Loading comments...