2 Replies Latest reply on Jan 8, 2013 7:28 AM by davidDav

    Not export same filepath

    davidDav Level 1

      Hi all,

       

       

      I am writing a script for export PDF in same file path using indesign Preset

       

      Could any one solve this pls:

       

       

      var myDoc=app.documents.item(0);

      var myJobOptionName = "Small File Size";

      var myOutFolderPathName = app.documents[0].fullName +"/";

      var myPDFFilePath;

      var InDJobOption = app.pdfExportPresets;

      myPDFFilePath = myOutFolderPathName + "/" + myDoc.name.split(".indd")[0].split(".INDD")[0]+".pdf";

      app.documents[0].exportFile (ExportFormat.pdfType, myPDFFilePath, false, myJobOptionName);

       

       

      thanks

      david