2 Replies Latest reply on Jun 19, 2009 7:51 AM by zncd

    Export to PDF

    Shail672021 Level 1



      I would like to export inx file to pdf file using javascript (.jsx). however, when i ran this script using testclient command it gives expected semicolon error.


      here is the script...


      var my_input = app.scriptArgs.getValue("in");
      var my_output = app.scriptArgs.getValue("out");


      var myDocument = app.open(File(my_input));


      if(app.documents.length != 0){
          app.documents.item(0).exportFile(ExportFormat.pdfType, File(my_input)), app.pdfExportPresets.item("[High Quality Print]"));


      Would please suggest what wrong in this script?