1 Reply Latest reply on Oct 25, 2013 12:32 AM by Sajeev Sridharan

    Load external PDF JobOptions

    BEGINNER_X Level 3

      Hi All,


      Is it Possible to load pdf export presets?


      Trying Script:


      var mypdfExportPresets = app.pdfExportPresets.everyItem().getElements();
      alert("mypdfExportPresets: " + mypdfExportPresets.length);
      for(i=0; i<mypdfExportPresets.length; i++)
          var myPresetsName = mypdfExportPresets[i].name;
          var myPreset = app.pdfExportPresets.item("aaa");
      if(myPresetsName != app.pdfExportPresets.item("aaa"))
          alert("Please load provided aaa.joboptions")
          var myProfile = app.pdfExportPresets.add(File.openDialog("Choose the PDF preset"));   //Problem in this line only



      I think its available for loadPreflightProfile, loadSwatches, loadXMLTags, loadFindChangeQuery etc...


      Check with forum too. But I can't suceed.


      Please help.


      Thanks in advance