3 Replies Latest reply: May 10, 2012 7:57 AM by John Hawkinson RSS

    FXD export from InDesign CS5, js

    Yuliaart Community Member

      Hi,

       

      I need to export InDesign file as fxg. I assume it will be something similar to exporting pdf, but I am definitely missing something. Here is what I have:

       

       

       

      myDoc = app.activeDocument;
      myDocPath = myDoc.filePath;
      mySplit = myDoc.name.indexOf (".");
      myFXGName = myDoc.name.slice (0,mySplit);
      var myRootPath = myDocPath.parent.fsName;  
      myFXGFullName = myFXGName + ".fxg";
      
      
           //   var myFXGExportPreset = app.fxgExportPresets.item("ExportPDFCS5");
      
      
              
          myDoc.exportFile(
              ExportFormat.fxgType,
              File(myRootPath + "/" + myFXGFullName),
              false, 
              // myFXGExportPreset
          );
      

         

       

       

       

      Thank you for your help.

      Yulia